diff options
author | 2021-12-18 04:24:10 +0100 | |
---|---|---|
committer | 2021-12-18 04:24:10 +0100 | |
commit | 18494f66a7e0f4020cbc77374d4679421fcf469a (patch) | |
tree | cfd10fb71ca86f4d0580946cee2ccbc8c66dc634 /src/electron/ipc-api/autoUpdate.ts | |
parent | Fix linter (diff) | |
download | ferdium-app-18494f66a7e0f4020cbc77374d4679421fcf469a.tar.gz ferdium-app-18494f66a7e0f4020cbc77374d4679421fcf469a.tar.zst ferdium-app-18494f66a7e0f4020cbc77374d4679421fcf469a.zip |
Refactor autoUpdater usage
Diffstat (limited to 'src/electron/ipc-api/autoUpdate.ts')
-rw-r--r-- | src/electron/ipc-api/autoUpdate.ts | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/electron/ipc-api/autoUpdate.ts b/src/electron/ipc-api/autoUpdate.ts index a41c1f6f4..aed87455e 100644 --- a/src/electron/ipc-api/autoUpdate.ts +++ b/src/electron/ipc-api/autoUpdate.ts | |||
@@ -18,14 +18,6 @@ export default (params: { mainWindow: BrowserWindow; settings: any }) => { | |||
18 | autoUpdater.allowPrerelease = Boolean( | 18 | autoUpdater.allowPrerelease = Boolean( |
19 | params.settings.app.get('beta'), | 19 | params.settings.app.get('beta'), |
20 | ); | 20 | ); |
21 | autoUpdater.channel = autoUpdater.allowPrerelease ? 'beta' : 'latest'; | ||
22 | |||
23 | if (params.settings.app.get('nightly')) { | ||
24 | autoUpdater.allowPrerelease = Boolean( | ||
25 | params.settings.app.get('nightly'), | ||
26 | ); | ||
27 | autoUpdater.channel = 'alpha'; | ||
28 | } | ||
29 | 21 | ||
30 | if (args.action === 'check') { | 22 | if (args.action === 'check') { |
31 | debug('checking for update'); | 23 | debug('checking for update'); |