Skip to content

Commit

Permalink
fix(electron-updater): do not install on quit when autoInstallOnAppQu…
Browse files Browse the repository at this point in the history
…it is set to false (#5681)
  • Loading branch information
jely2002 authored Mar 16, 2021
1 parent 9162711 commit 8f84591
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/electron-updater/src/BaseUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ export abstract class BaseUpdater extends AppUpdater {
return
}

if (!this.autoInstallOnAppQuit) {
this._logger.info("Update will not be installed on quit because autoInstallOnAppQuit is set to false.")
return
}

if (exitCode !== 0) {
this._logger.info(`Update will be not installed on quit because application is quitting with exit code ${exitCode}`)
return
Expand Down

0 comments on commit 8f84591

Please sign in to comment.