From 462d77fc1eff16b1f3d856ea5a5e72c1748c3d34 Mon Sep 17 00:00:00 2001 From: Maikiwi Date: Sat, 19 Feb 2022 22:05:37 -0800 Subject: [PATCH] bring back auto upd --- src/main/base/browserwindow.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/base/browserwindow.ts b/src/main/base/browserwindow.ts index fbd5ccbe..d6fc722d 100644 --- a/src/main/base/browserwindow.ts +++ b/src/main/base/browserwindow.ts @@ -684,7 +684,7 @@ export class BrowserWindow { console.log(err) }); }); -/* + ipcMain.on('check-for-update', async (_event) => { const branch = utils.getStoreValue('general.update_branch') let latestbranch = await fetch(`https://circleci.com/api/v1.1/project/gh/ciderapp/Cider/latest/artifacts?branch=${branch}&filter=successful`) @@ -700,10 +700,10 @@ export class BrowserWindow { const options: any = { provider: 'generic', url: `${base_url}` - }*/ - /* - * Have to handle the auto updaters seperatly until we can support macOS. electron-builder limitation -q - */ /* + } + + // Have to handle the auto updaters seperatly until we can support macOS. electron-builder limitation -q + const win_autoUpdater = new NsisUpdater(options) //Windows const linux_autoUpdater = new AppImageUpdater(options) //Linux await win_autoUpdater.checkForUpdatesAndNotify() @@ -717,7 +717,6 @@ export class BrowserWindow { event.returnValue = true } }) -*/ ipcMain.on('share-menu', async (_event, url) => { if (process.platform != 'darwin') return;