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 +4 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,10 @@ buildNpmPackage { "--nodedir=${electron.headers}" ]; patches = [ ./0001-feat-update-Disable-auto-checking-for-updates-and-updating-manually.patch ]; buildPhase = '' runHook preBuild Loading 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 +4 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,10 @@ buildNpmPackage { "--nodedir=${electron.headers}" ]; patches = [ ./0001-feat-update-Disable-auto-checking-for-updates-and-updating-manually.patch ]; buildPhase = '' runHook preBuild Loading