Skip to content

Commit

Permalink
debug autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
hanayik committed Feb 27, 2017
1 parent 3a03880 commit f7b5356
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ let options = {
repo: 'hanayik/Philadelphia-Naming-Test',
currentVersion: app.getVersion()
}
console.log("current version: ", options.currentVersion)
const updater = new GhReleases(options)
// Check for updates
// `status` returns true if there is a new update available
updater.check((err, status) => {
console.log(status)
if (!err && status) {
// Download the update
updater.download()
dialog.showMessageBox({type: "none", message: "downloading update"})
}
})

Expand Down

0 comments on commit f7b5356

Please sign in to comment.