diff options
author | 2022-05-18 13:29:38 -0500 | |
---|---|---|
committer | 2022-05-18 13:29:38 -0500 | |
commit | 8a403d770c2ee8e4f3d8760b12669477270429a0 (patch) | |
tree | 6189a79e6a986c10f3ca12b8160a9cab80bc78ce | |
parent | Remove duplicated Button.js component (#176) (diff) | |
download | ferdium-app-8a403d770c2ee8e4f3d8760b12669477270429a0.tar.gz ferdium-app-8a403d770c2ee8e4f3d8760b12669477270429a0.tar.zst ferdium-app-8a403d770c2ee8e4f3d8760b12669477270429a0.zip |
Update for in-app update process (not yet tested since we dont have signed builds)
-rw-r--r-- | src/electron/ipc-api/autoUpdate.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/electron/ipc-api/autoUpdate.ts b/src/electron/ipc-api/autoUpdate.ts index 839f1f117..d20a413b3 100644 --- a/src/electron/ipc-api/autoUpdate.ts +++ b/src/electron/ipc-api/autoUpdate.ts | |||
@@ -27,6 +27,8 @@ export default (params: { mainWindow: BrowserWindow; settings: any }) => { | |||
27 | app.removeAllListeners('window-all-closed'); | 27 | app.removeAllListeners('window-all-closed'); |
28 | params.mainWindow.removeAllListeners('close'); | 28 | params.mainWindow.removeAllListeners('close'); |
29 | autoUpdater.quitAndInstall(); | 29 | autoUpdater.quitAndInstall(); |
30 | // TODO: based on https://github.com/electron-userland/electron-builder/issues/6058#issuecomment-1130344017 (not yet tested since we don't have signed builds yet for macos) | ||
31 | app.exit(); | ||
30 | } | 32 | } |
31 | } catch (error) { | 33 | } catch (error) { |
32 | event.sender.send('autoUpdate', { error }); | 34 | event.sender.send('autoUpdate', { error }); |