Auto Update with electron-updater (WIP) #808
1 changed files with 7 additions and 2 deletions
|
@ -198,8 +198,13 @@ export function doCheckUpgradeAvailable() {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (["win32", "darwin"].includes(process.platform)) {
|
if (["win32", "darwin"].includes(process.platform)) {
|
||||||
// On Windows and Mac, updates happen silently
|
// On Windows and Mac, updates happen silently through
|
||||||
autoUpdater.checkForUpdates();
|
// electron-updater.
|
||||||
|
const autoUpdateDeclined = selectAutoUpdateDeclined(state);
|
||||||
|
|
||||||
|
if (!autoUpdateDeclined) {
|
||||||
|
autoUpdater.checkForUpdates();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue