[desktop] Fix warning on windows auto update (#1745)

> 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.
This commit is contained in:
Manav Rathi 2024-05-16 20:56:12 +05:30 committed by GitHub
commit 7fe2a98eec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]