Browse Source

fix(updater): don't run auto updater in dev mode

renovate/lint-staged-8.x
Tom Kirkpatrick 6 years ago
parent
commit
eb7465be36
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 6
      app/lib/zap/updater.js

6
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',

Loading…
Cancel
Save