Update update notifications
This commit is contained in:
parent
b506d5dd56
commit
3033d87a88
|
|
@ -99,7 +99,7 @@ autoUpdater.on("update-available", () => {
|
||||||
showNotification(`Update available. Current version ${app.getVersion()}`);
|
showNotification(`Update available. Current version ${app.getVersion()}`);
|
||||||
let pth = autoUpdater.downloadUpdate();
|
let pth = autoUpdater.downloadUpdate();
|
||||||
console.log(pth);
|
console.log(pth);
|
||||||
showNotification(pth);
|
showNotification(`Download update path : ${pth}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
autoUpdater.on("update-not-available", () => {
|
autoUpdater.on("update-not-available", () => {
|
||||||
|
|
@ -115,5 +115,5 @@ autoUpdater.on("update-downloaded", () => {
|
||||||
|
|
||||||
autoUpdater.on("error", (info) => {
|
autoUpdater.on("error", (info) => {
|
||||||
console.log(info);
|
console.log(info);
|
||||||
showNotification(info);
|
showNotification(`Error: ${info}`);
|
||||||
});
|
});
|
||||||
Loading…
Reference in a new issue