mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
Merge pull request #4006 from balena-io/aethernet/restore-update
revert auto-update feature
This commit is contained in:
commit
5c8c4ea412
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user