From 397b95f9e5edbd3e2f1c557e44a3e68b569cc3ad Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Thu, 2 May 2019 09:12:59 +0200 Subject: [PATCH] Disable auto update Auto update is buggy https://github.com/electron-userland/electron-builder/issues/3681 --- src/autoUpdater.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/autoUpdater.ts b/src/autoUpdater.ts index 84056fd..4cd2234 100644 --- a/src/autoUpdater.ts +++ b/src/autoUpdater.ts @@ -7,17 +7,17 @@ export function shouldAutoUpdate(build: BuildInfo) { } export function handleAutoUpdate() { - autoUpdater.on('update-available', (info: UpdateInfo) => { - console.log('There is an update available') - }) + // autoUpdater.on('update-available', (info: UpdateInfo) => { + // console.log('There is an update available') + // }) - autoUpdater.on('error', () => { - console.log('could not update due to error') - }) + // autoUpdater.on('error', (error) => { + // console.error('could not update due to error', error) + // }) - try { - autoUpdater.checkForUpdatesAndNotify() - } catch (error) { - console.error(error) - } + // try { + // autoUpdater.checkForUpdatesAndNotify() + // } catch (error) { + // console.error(error) + // } }