Skip to content

Commit

Permalink
Switched updater option
Browse files Browse the repository at this point in the history
  • Loading branch information
MARCoTheRobot committed Nov 20, 2019
1 parent 15e354b commit b5aebb4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
36 changes: 18 additions & 18 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ app.on('window-all-closed', () => {
// This will immediately download an update, then install when the
// app quits.
//-------------------------------------------------------------------
app.on('ready', function() {
/*app.on('ready', function() {
autoUpdater.checkForUpdatesAndNotify();
});
});*/

//-------------------------------------------------------------------
// Auto updates - Option 2 - More control
Expand All @@ -124,19 +124,19 @@ app.on('ready', function() {
// Uncomment any of the below events to listen for them. Also,
// look in the previous section to see them being used.
//-------------------------------------------------------------------
// app.on('ready', function() {
// autoUpdater.checkForUpdates();
// });
// autoUpdater.on('checking-for-update', () => {
// })
// autoUpdater.on('update-available', (info) => {
// })
// autoUpdater.on('update-not-available', (info) => {
// })
// autoUpdater.on('error', (err) => {
// })
// autoUpdater.on('download-progress', (progressObj) => {
// })
// autoUpdater.on('update-downloaded', (info) => {
// autoUpdater.quitAndInstall();
// })
app.on('ready', function() {
autoUpdater.checkForUpdates();
});
autoUpdater.on('checking-for-update', () => {
})
autoUpdater.on('update-available', (info) => {
})
autoUpdater.on('update-not-available', (info) => {
})
autoUpdater.on('error', (err) => {
})
autoUpdater.on('download-progress', (progressObj) => {
})
autoUpdater.on('update-downloaded', (info) => {
autoUpdater.quitAndInstall();
})
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"appId": "marco.electronappexample",
"win": {
"target": [
"zip",
"msi"
"zip"
]
}
}
Expand Down

0 comments on commit b5aebb4

Please sign in to comment.