We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86410c4 commit ca4d4d0Copy full SHA for ca4d4d0
electron/app/js/appUpdater.js
@@ -11,6 +11,7 @@ const i18n = require('./i18next.config');
11
const { getLogger } = require('./wktLogging');
12
const errorUtils = require('./errorUtils');
13
const { sendToWindow } = require('./windowUtils');
14
+const osUtils = require('./osUtils');
15
16
let _isDevMode;
17
let _downloadWindow;
@@ -34,6 +35,11 @@ function registerAutoUpdateListeners() {
34
35
autoUpdater.logger.info('Download complete, install type: ' + _installType);
36
// quit and install in this handler so MacOS updater can process the event first
37
if(_installType === 'now') {
38
+ // Working around https://github.com/electron-userland/electron-builder/issues/6418
39
+ //
40
+ if (osUtils.isMac()) {
41
+ autoUpdater.autoInstallOnAppQuit = false;
42
+ }
43
autoUpdater.quitAndInstall();
44
}
45
});
0 commit comments