Merge pull request #4006 from balena-io/aethernet/restore-update

revert auto-update feature
This commit is contained in:
Edwin Joassart 2023-02-03 15:24:32 +01:00 committed by GitHub
commit 5c8c4ea412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}