revert auto-update feature

Change-type: patch
This commit is contained in:
JOASSART Edwin 2023-02-03 09:48:22 +01:00 committed by Edwin Joassart
parent 324102bc73
commit e6d33eda2b

View File

@ -208,6 +208,23 @@ async function createMainWindow() {
)}`,
);
const page = mainWindow.webContents;
page.once('did-frame-finish-load', async () => {
console.log('packageUpdatable', packageUpdatable);
autoUpdater.on('error', (err) => {
logMainProcessException(err);
});
if (packageUpdatable) {
try {
const checkForUpdatesTimer = 300000;
checkForUpdates(checkForUpdatesTimer);
} catch (err) {
logMainProcessException(err);
}
}
});
return mainWindow;
}