Skip to content

Commit ca4d4d0

Browse files
committed
1 parent 86410c4 commit ca4d4d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

electron/app/js/appUpdater.js

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const i18n = require('./i18next.config');
1111
const { getLogger } = require('./wktLogging');
1212
const errorUtils = require('./errorUtils');
1313
const { sendToWindow } = require('./windowUtils');
14+
const osUtils = require('./osUtils');
1415

1516
let _isDevMode;
1617
let _downloadWindow;
@@ -34,6 +35,11 @@ function registerAutoUpdateListeners() {
3435
autoUpdater.logger.info('Download complete, install type: ' + _installType);
3536
// quit and install in this handler so MacOS updater can process the event first
3637
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+
}
3743
autoUpdater.quitAndInstall();
3844
}
3945
});

0 commit comments

Comments
 (0)