Ver Fonte

feat(desktop): allow silent install and only user-wide scope (#26253)

Luke Parker há 3 meses atrás
pai
commit
b8799be3c8

+ 2 - 2
packages/desktop/electron-builder.config.ts

@@ -66,8 +66,8 @@ const getBase = (): Configuration => ({
     verifyUpdateCodeSignature: false,
   },
   nsis: {
-    oneClick: false,
-    allowToChangeInstallationDirectory: true,
+    oneClick: true,
+    perMachine: false,
     installerIcon: `resources/icons/icon.ico`,
     installerHeaderIcon: `resources/icons/icon.ico`,
   },

+ 1 - 1
packages/desktop/src/main/index.ts

@@ -444,7 +444,7 @@ async function installUpdate() {
     version: downloadedUpdateVersion,
   })
   await killSidecar()
-  autoUpdater.quitAndInstall()
+  autoUpdater.quitAndInstall(true, true)
 }
 
 async function checkForUpdates(alertOnFail: boolean) {