-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
qcif/data-curator
#563Labels
Description
- Version: 10.5.0
- Target: win32 ia32
Greetings,
I really appreciate it if there is an API to start downloading updates rather than the current all-in-one check-and-download autoUpdater.checkForUpdates
function.
What I want is something like this:
autoUpdater.autoDownload = false;
autoUpdater.on('update-available', () => {
if(confirm('New version is available, download now?')) {
autoUpdater.on('update-downloaded', () => {
if(confirm('New version is downloaded, quit and install now?')) {
autoUpdater.quitAndInstall();
}
});
autoUpdater.download();
}
});
autoUpdater.checkForUpdates();
I can do and PR it but I want to know if it comforts you so feel free to discuss. Thanks.