From f18539c70347c7230b56d6dfc35c83b94d4b9e8d Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sat, 10 Dec 2022 14:16:14 -0600 Subject: [PATCH] remove macOS auto update warning --- main.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/main.js b/main.js index 42819e6..67ad349 100644 --- a/main.js +++ b/main.js @@ -1,4 +1,4 @@ -const { app, BrowserWindow, Menu, ipcMain, nativeTheme, dialog, shell } = require('electron'); +const { app, BrowserWindow, Menu, ipcMain, nativeTheme, dialog } = require('electron'); const { autoUpdater } = require('electron-updater'); const path = require('path'); @@ -257,7 +257,7 @@ autoUpdater.on('update-available', (updateInfo) => { buttons: ['Download', 'Cancel'], title: 'Update Available', message: title, - detail: `Auto updating is not yet automatic on MacOS. Please manually download and install version ${updateInfo.version}.` + detail: msg } }else{ dialogOpts = { @@ -271,14 +271,7 @@ autoUpdater.on('update-available', (updateInfo) => { dialog.showMessageBox(mainWindow,dialogOpts).then((returnValue) => { // download was clicked if (returnValue.response === 0){ - if(!isMac){ - autoUpdater.downloadUpdate(); - }else{ - // TODO: get code signing working - // temp solution to direct user to download - shell.openExternal("https://github.com/stagehacks/Cue-View/releases/") - } - + autoUpdater.downloadUpdate(); } }) })