Skip to content

Commit

Permalink
Adds autoupdater
Browse files Browse the repository at this point in the history
  • Loading branch information
“Andre committed Aug 20, 2017
1 parent 2406463 commit b18c883
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ const {app, BrowserWindow} = electron
const path = require('path')
const url = require('url')

//updater 85243753a7031694ec6856ac439cdfccf19b1fc7
const autoUpdater = require("electron-updater").autoUpdater

const isDev = require('electron-is-dev'); // this is required to check if the app is running in development mode.
const {appUpdater} = require('./autoupdater')

Expand Down Expand Up @@ -59,7 +62,7 @@ function createWindow(){
appUpdater();
}});

//win.webContents.openDevTools()
win.webContents.openDevTools()
}

exports.openWindow = () => {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
},
"dependencies": {
"electron-is-dev": "^0.3.0",
"electron-updater": "^2.8.7",
"mysql": "^2.13.0",
"pretty-bytes": "^4.0.2"
}
Expand Down

0 comments on commit b18c883

Please sign in to comment.