From b9c4682adc7fa98e34d5739ae6ad19e7f25c51ee Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 16 May 2024 20:54:24 +0530 Subject: [PATCH] [desktop] Fix warning on windows auto update > disableWebInstaller is set to false, you should set it to true if you do not plan on using a web installer. This will default to true in a future version. --- desktop/src/main/services/app-update.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desktop/src/main/services/app-update.ts b/desktop/src/main/services/app-update.ts index 47188264f..6e3890e16 100644 --- a/desktop/src/main/services/app-update.ts +++ b/desktop/src/main/services/app-update.ts @@ -11,6 +11,11 @@ import { isDev } from "../utils/electron"; export const setupAutoUpdater = (mainWindow: BrowserWindow) => { autoUpdater.logger = electronLog; autoUpdater.autoDownload = false; + // This is going to be the default at some point, right now if we don't + // explicitly set this to true then electron-builder prints a (harmless) + // warning when updating on Windows. + // See: https://github.com/electron-userland/electron-builder/pull/6575 + autoUpdater.disableWebInstaller = true; /** * [Note: Testing auto updates]