From eb7465be36534df69edd64c0e9775933c1f819c6 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Thu, 13 Sep 2018 14:02:25 +0200 Subject: [PATCH] fix(updater): don't run auto updater in dev mode --- app/lib/zap/updater.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/lib/zap/updater.js b/app/lib/zap/updater.js index 0431bb9d..d068a64a 100644 --- a/app/lib/zap/updater.js +++ b/app/lib/zap/updater.js @@ -1,5 +1,6 @@ import { dialog } from 'electron' import { autoUpdater } from 'electron-updater' +import isDev from 'electron-is-dev' import { updaterLog } from '../utils/log' autoUpdater.logger = updaterLog @@ -19,6 +20,11 @@ class ZapUpdater { } init() { + // Do not run the updater if we are running in dev mode. + if (isDev) { + return + } + autoUpdater.on('update-downloaded', () => { const opt = { type: 'question',