Browse Source

Merge pull request #757 from mrfelton/fix/dont-run-updater-in-dev

fix(updater): don't run auto updater in dev mode
renovate/lint-staged-8.x
JimmyMow 6 years ago
committed by GitHub
parent
commit
942a0bef48
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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