Browse Source
fix(updater): don't run auto updater in dev mode
renovate/lint-staged-8.x
Tom Kirkpatrick
6 years ago
No known key found for this signature in database
GPG Key ID: 72203A8EC5967EA8
1 changed files with
6 additions and
0 deletions
-
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', |
|
|
|