Skip to content

Commit

Permalink
fix: don't require update-electron-app if cli
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere authored and zeke committed Aug 25, 2018
1 parent 2636f18 commit 40db0c6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
require('update-electron-app')({
logger: require('electron-log')
})
// only add update server if it's not being run from cli
if (require.main !== module) {
require('update-electron-app')({
logger: require('electron-log')
})
}

const path = require('path')
const glob = require('glob')
Expand Down

0 comments on commit 40db0c6

Please sign in to comment.