Loading pkgs/by-name/an/anytype-heart/package.nix +3 −3 Original line number Diff line number Diff line Loading @@ -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 = Loading @@ -34,7 +34,7 @@ in buildGoModule { inherit pname version src; vendorHash = "sha256-fbZ1DiRcD9dnS8e7BMrKPYApqZmQbaH6DsSSO1knDmo="; vendorHash = "sha256-xsxgeoS1wIi0/LNGmZZyWKWzhkMJUnCEslXcIz+Dw8U="; subPackages = [ "cmd/grpcserver" ]; tags = [ Loading pkgs/by-name/an/anytype/0001-feat-update-Disable-auto-checking-for-updates-and-updating-manually.patch 0 → 100644 +37 −0 Original line number Diff line number Diff line 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 pkgs/by-name/an/anytype/package.nix +9 −5 Original line number Diff line number Diff line Loading @@ -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"; Loading @@ -50,6 +50,10 @@ buildNpmPackage { "--nodedir=${electron.headers}" ]; patches = [ ./0001-feat-update-Disable-auto-checking-for-updates-and-updating-manually.patch ]; buildPhase = '' runHook preBuild Loading pkgs/by-name/ta/tantivy-go/add-Cargo.lock.patch +424 −268 File changed.Preview size limit exceeded, changes collapsed. Show changes pkgs/by-name/ta/tantivy-go/package.nix +3 −3 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
pkgs/by-name/an/anytype-heart/package.nix +3 −3 Original line number Diff line number Diff line Loading @@ -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 = Loading @@ -34,7 +34,7 @@ in buildGoModule { inherit pname version src; vendorHash = "sha256-fbZ1DiRcD9dnS8e7BMrKPYApqZmQbaH6DsSSO1knDmo="; vendorHash = "sha256-xsxgeoS1wIi0/LNGmZZyWKWzhkMJUnCEslXcIz+Dw8U="; subPackages = [ "cmd/grpcserver" ]; tags = [ Loading
pkgs/by-name/an/anytype/0001-feat-update-Disable-auto-checking-for-updates-and-updating-manually.patch 0 → 100644 +37 −0 Original line number Diff line number Diff line 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
pkgs/by-name/an/anytype/package.nix +9 −5 Original line number Diff line number Diff line Loading @@ -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"; Loading @@ -50,6 +50,10 @@ buildNpmPackage { "--nodedir=${electron.headers}" ]; patches = [ ./0001-feat-update-Disable-auto-checking-for-updates-and-updating-manually.patch ]; buildPhase = '' runHook preBuild Loading
pkgs/by-name/ta/tantivy-go/add-Cargo.lock.patch +424 −268 File changed.Preview size limit exceeded, changes collapsed. Show changes
pkgs/by-name/ta/tantivy-go/package.nix +3 −3 Original line number Diff line number Diff line Loading @@ -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 Loading