瀏覽代碼

[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.
Manav Rathi 1 年之前
父節點
當前提交
7fe2a98eec
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      desktop/src/main/services/app-update.ts

+ 5 - 0
desktop/src/main/services/app-update.ts

@@ -11,6 +11,11 @@ import { isDev } from "../utils/electron";
 export const setupAutoUpdater = (mainWindow: BrowserWindow) => {
 export const setupAutoUpdater = (mainWindow: BrowserWindow) => {
     autoUpdater.logger = electronLog;
     autoUpdater.logger = electronLog;
     autoUpdater.autoDownload = false;
     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]
      * [Note: Testing auto updates]