Deps update , wait 300 seconds before quit and update

This commit is contained in:
AlphaX-Projects 2022-02-04 05:21:31 -08:00 committed by GitHub
parent 7a78ba24e6
commit 1ffae3e9aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 10 deletions

View File

@ -125,7 +125,7 @@ if (!isLock) {
autoUpdater.on('update-available', () => {
const n = new Notification({
title: 'Update Available!',
body: 'It will be downloaded in the background and installed after download.'
body: 'It will be downloaded ⌛️ in the background and installed after download.'
})
n.show();
})
@ -139,9 +139,12 @@ if (!isLock) {
autoUpdater.on('update-downloaded', () => {
const n = new Notification({
title: 'Update Downloaded!',
body: 'Restarting to Update'
body: 'Restarting in 30 secounds to Update. Please finish your tasks!'
})
setTimeout(() => {
n.show();
}, 30000);
autoUpdater.quitAndInstall();
})
}

View File

@ -32,7 +32,7 @@
},
"dependencies": {
"electron-updater": "4.3.9",
"electron-log": "4.4.1"
"electron-log": "4.4.5"
},
"devDependencies": {
"electron": "11.5.0",