Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpatrick committed Nov 13, 2021
1 parent 86410c4 commit ca4d4d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions electron/app/js/appUpdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const i18n = require('./i18next.config');
const { getLogger } = require('./wktLogging');
const errorUtils = require('./errorUtils');
const { sendToWindow } = require('./windowUtils');
const osUtils = require('./osUtils');

let _isDevMode;
let _downloadWindow;
Expand All @@ -34,6 +35,11 @@ function registerAutoUpdateListeners() {
autoUpdater.logger.info('Download complete, install type: ' + _installType);
// quit and install in this handler so MacOS updater can process the event first
if(_installType === 'now') {
// Working around https://github.com/electron-userland/electron-builder/issues/6418
//
if (osUtils.isMac()) {
autoUpdater.autoInstallOnAppQuit = false;
}
autoUpdater.quitAndInstall();
}
});
Expand Down

0 comments on commit ca4d4d0

Please sign in to comment.