Hello;
the autoUpdater has quitAndInstall which restarts the app when the update is done. I would like to give user the option to install update when they quit the app (and, therefore, prevent the automatic restart of the app)
My suggestion is, when download is finished to give user the option to "update now!" (calls existing quitAndInstall and restarts the app as expected; or second option "update on quit" : set flags autoUpdater.autoRestart = false and I can trigger the same quitAndInstall when the user is closing the last window.
Background: user can have several windows open with changes not saved, etc. so we are not keen on interrupting the user all the time.
Thanks
Simply do nothing — what is you requested — is default behaviour. Do nothing — do not call quitAndInstall. Downloaded update will be installed on app quit.
user can have several windows open with changes not saved, etc. so we are not keen on interrupting the user all the time.
That's why we do not recommend call quitAndInstall. 👍
Do not bother user — simply download, notify using system notification and nothing more. Update will be installed on app quit. https://github.com/electron-userland/electron-builder/wiki/Auto-Update#examples "using system notifications."
haha, awesome. Even more magic awesomness in electron-builder. You all rock!
Just found this, thanks for the clarification.
Most helpful comment
Do not bother user — simply download, notify using system notification and nothing more. Update will be installed on app quit. https://github.com/electron-userland/electron-builder/wiki/Auto-Update#examples "using system notifications."