From e6d33eda2b8f767679a43f8056e20098b0f2f6d9 Mon Sep 17 00:00:00 2001 From: JOASSART Edwin Date: Fri, 3 Feb 2023 09:48:22 +0100 Subject: [PATCH] revert auto-update feature Change-type: patch --- lib/gui/etcher.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/gui/etcher.ts b/lib/gui/etcher.ts index 8fdfbec6..d135db3d 100644 --- a/lib/gui/etcher.ts +++ b/lib/gui/etcher.ts @@ -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; }