From b5aebb430603d34e577adc045f41af7ff9158a31 Mon Sep 17 00:00:00 2001 From: Jacob Boyle <41026168+MARCoTheRobot@users.noreply.github.com> Date: Wed, 20 Nov 2019 17:12:12 -0500 Subject: [PATCH] Switched updater option --- main.js | 36 ++++++++++++++++++------------------ package.json | 3 +-- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/main.js b/main.js index b5bd58a..17fabb5 100644 --- a/main.js +++ b/main.js @@ -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 @@ -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(); + }) diff --git a/package.json b/package.json index fee6cc3..8166de8 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,7 @@ "appId": "marco.electronappexample", "win": { "target": [ - "zip", - "msi" + "zip" ] } }