Print update info
This commit is contained in:
@@ -58,10 +58,13 @@ app.on('ready', () => {
|
|||||||
|
|
||||||
let updateInfo
|
let updateInfo
|
||||||
autoUpdater.on('update-available', (info) => {
|
autoUpdater.on('update-available', (info) => {
|
||||||
|
console.log('there is an update')
|
||||||
updateInfo = info
|
updateInfo = info
|
||||||
})
|
})
|
||||||
|
|
||||||
autoUpdater.on('error', () => {
|
autoUpdater.on('error', () => {
|
||||||
|
console.log('could not update due to error')
|
||||||
|
|
||||||
if (updateInfo) {
|
if (updateInfo) {
|
||||||
updateNotifier.notify(updateInfo)
|
updateNotifier.notify(updateInfo)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user