anytype: 0.45.3 -> 0.46.4 (#399709)

This commit is contained in:
Peder Bergebakken Sundt 2025-05-02 18:18:40 +02:00 committed by GitHub
commit f3ffe3b157
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 480 additions and 283 deletions

View File

@ -11,12 +11,12 @@
let
pname = "anytype-heart";
version = "0.39.11";
version = "0.40.19";
src = fetchFromGitHub {
owner = "anyproto";
repo = "anytype-heart";
tag = "v${version}";
hash = "sha256-+H63bc4aJPERfclzKh4E3uYEEwNycLfe0BCPSlilqCc=";
hash = "sha256-BUQZmZ7jKWdbBcWtx7rbbeEJbo5FncYHmp/5FVd0vdI=";
};
arch =
@ -34,7 +34,7 @@ in
buildGoModule {
inherit pname version src;
vendorHash = "sha256-fbZ1DiRcD9dnS8e7BMrKPYApqZmQbaH6DsSSO1knDmo=";
vendorHash = "sha256-xsxgeoS1wIi0/LNGmZZyWKWzhkMJUnCEslXcIz+Dw8U=";
subPackages = [ "cmd/grpcserver" ];
tags = [

View File

@ -0,0 +1,37 @@
From d236396b1da80a7233168e01e8164256e7f69cc1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Chocholat=C3=BD?= <chocholaty.david@protonmail.com>
Date: Fri, 25 Apr 2025 12:29:37 +0200
Subject: [PATCH] feat(update): Disable auto checking for updates and updating
manually
---
electron/js/update.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/electron/js/update.js b/electron/js/update.js
index 0e34efa..9386c90 100644
--- a/electron/js/update.js
+++ b/electron/js/update.js
@@ -29,7 +29,8 @@ class UpdateManager {
autoUpdater.autoInstallOnAppQuit = false;
autoUpdater.channel = channel;
- this.setTimeout();
+ // PATCH(update): Never check for updates on a timer timeout.
+ // this.setTimeout();
autoUpdater.on('checking-for-update', () => {
Util.log('info', 'Checking for update');
@@ -93,6 +94,9 @@ class UpdateManager {
};
isAllowed () {
+ // PATCH(update): Always disallow update check, even when requested by the user manually or when Anytype starts.
+ return false;
+
const { config } = ConfigManager;
if (config.updateDisabled) {
--
2.49.0

View File

@ -13,27 +13,27 @@
let
pname = "anytype";
version = "0.45.3";
version = "0.46.4";
src = fetchFromGitHub {
owner = "anyproto";
repo = "anytype-ts";
tag = "v${version}";
hash = "sha256-fwfxmNca75xAAHKeT2nddz+XZexDomzHbw188LXxZqA=";
hash = "sha256-JA8DHOPRLPoc8/GXkHfktVy3sZ5BpSFmgn71Xt15iLE=";
};
description = "P2P note-taking tool";
locales = fetchFromGitHub {
owner = "anyproto";
repo = "l10n-anytype-ts";
rev = "687106c4e37297f86fab79f77ef83599b61ab65c";
hash = "sha256-Y0irD0jzqYobnjtD2M1+hTDRUUYnuygUx9+tE1gUoTw=";
rev = "07eed415b0eec409dcdfedf848936d41f190c7ec";
hash = "sha256-PgDZkL/tg7/uZhLLenRjkb5NB1hQjUJflaAce2TlDRE=";
};
in
buildNpmPackage {
inherit pname version src;
npmDepsHash = "sha256-9BI+rXzTYonlMhcH8uiWyyF18JGv8GL1U9hZ9Z6X3As=";
npmDepsHash = "sha256-4pMYKmQ7+f8BKztLF4Jfe89tuh+DiQNnS3ulL0i6Gw0=";
env = {
ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
@ -50,6 +50,10 @@ buildNpmPackage {
"--nodedir=${electron.headers}"
];
patches = [
./0001-feat-update-Disable-auto-checking-for-updates-and-updating-manually.patch
];
buildPhase = ''
runHook preBuild

File diff suppressed because it is too large Load Diff

View File

@ -6,17 +6,17 @@
rustPlatform.buildRustPackage rec {
pname = "tantivy-go";
version = "0.3.1";
version = "1.0.1";
src = fetchFromGitHub {
owner = "anyproto";
repo = "tantivy-go";
tag = "v${version}";
hash = "sha256-IlGtyTjOAvmrbgmvy4NelTOgOWopxNta3INq2QcMEqY=";
hash = "sha256-iTGIm5C7SMBZv2OcKCQCyEZS/eeMJQ5nFSpuFJbTEXU=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-3+HtZ7SAnvTNXtYlokX/Z9VD1lDw+nh6R/njYOZeGoE=";
cargoHash = "sha256-f8xI4g6MK4NUn0DpxD+miaCzBe8FSSqaL5rpjoqUGfY=";
cargoPatches = [
./add-Cargo.lock.patch