cicd
This commit is contained in:
parent
72fd4aa6e0
commit
72b3368b48
2 changed files with 5 additions and 4 deletions
|
|
@ -27,12 +27,13 @@ const isDev = require('electron-is-dev');
|
|||
type: 'info',
|
||||
buttons: ['Restart', 'Later'],
|
||||
title: 'Application Update',
|
||||
message: releaseName,
|
||||
detail: 'A new version has been downloaded. Restart to update.'
|
||||
message: 'A new version has been downloaded. Restart to update.'
|
||||
}
|
||||
|
||||
autoUpdater.on('update-downloaded', () => {
|
||||
autoUpdater.quitAndInstall()
|
||||
dialog.showMessageBox(dialogConfig).then((returnValue) => {
|
||||
if (returnValue.response === 0) autoUpdater.quitAndInstall()
|
||||
})
|
||||
})
|
||||
|
||||
autoUpdater.checkForUpdatesAndNotify()
|
||||
|
|
|
|||
Loading…
Reference in a new issue