Skip to content

Commit

Permalink
Enable update-electron-app
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnblk committed May 12, 2018
1 parent 4395edc commit 2e5468e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
3 changes: 1 addition & 2 deletions main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,4 @@ ipcMain.on('export-html', (e, state) => {
})
})

// enable once release is published
// require('update-electron-app')()
require('update-electron-app')()
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"stringify-object": "^3.2.2",
"styled-components": "^3.2.6",
"styled-system": "^2.2.4",
"update-electron-app": "^1.1.2",
"webpack": "^4.7.0"
},
"devDependencies": {
Expand Down
17 changes: 2 additions & 15 deletions src/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,14 @@ export const config = props => {
label: app.getName(),
submenu: [
{ role: 'about' },
/*
{
label: 'Check for Updates...',
click: e => {
// todo: update for update-electron-app
ipcRenderer.send('check-for-update')
notifications.push('Checking for updates...')
ipcRenderer.once('update-not-available', () => {
notifications.push('Already up-to-date')
})
ipcRenderer.once('update-available', e => {
notifications.push('Downloading update...')
})
ipcRenderer.once('update-downloaded', e => {
notifications.push('Update available. Click to restart and install', {
onClick: e => {
ipcRenderer.send('quit-and-install-update')
}
})
})
}
},
*/
{ type: 'separator' },
{ role: 'services', submenu: [] },
{ type: 'separator' },
Expand Down

0 comments on commit 2e5468e

Please sign in to comment.