A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
desktop: disable autoInstallOnAppQuit (#9726)
Abdullah Atta4ba2e900c507
diff --git a/apps/desktop/src/utils/autoupdater.ts b/apps/desktop/src/utils/autoupdater.tsindex c0e59009c..7f3255fa9 100644--- a/apps/desktop/src/utils/autoupdater.ts+++ b/apps/desktop/src/utils/autoupdater.ts@@ -37,7 +37,11 @@ async function configureAutoUpdater() {config.releaseTrack === "stable" &&autoUpdater.currentVersion.prerelease.length > 0;autoUpdater.allowPrerelease = false;- autoUpdater.autoInstallOnAppQuit = true;+ // Do NOT auto-install on quit. On Windows, if the system shuts down while+ // the NSIS installer is running, it first removes all old files and then+ // gets killed before copying new ones — leaving an empty install directory.+ // Updates should only be installed when the user explicitly triggers it.+ autoUpdater.autoInstallOnAppQuit = false;autoUpdater.disableWebInstaller = true;}