diff options
author | 2021-08-26 11:47:17 +0530 | |
---|---|---|
committer | 2021-08-26 11:47:50 +0530 | |
commit | 9bfd90717bae8360774db179862945d2e232cf27 (patch) | |
tree | 82f09d2b75e48845eeeec3589a5143b0256c3c33 /src/electron/ipc-api/autoUpdate.js | |
parent | 5.6.1-nightly.39 [skip ci] (diff) | |
download | ferdium-app-9bfd90717bae8360774db179862945d2e232cf27.tar.gz ferdium-app-9bfd90717bae8360774db179862945d2e232cf27.tar.zst ferdium-app-9bfd90717bae8360774db179862945d2e232cf27.zip |
chore: specify the channel to check if it fixes the in-app updater.
Diffstat (limited to 'src/electron/ipc-api/autoUpdate.js')
-rw-r--r-- | src/electron/ipc-api/autoUpdate.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/electron/ipc-api/autoUpdate.js b/src/electron/ipc-api/autoUpdate.js index 5305d5618..255595b9e 100644 --- a/src/electron/ipc-api/autoUpdate.js +++ b/src/electron/ipc-api/autoUpdate.js | |||
@@ -17,9 +17,11 @@ export default (params) => { | |||
17 | try { | 17 | try { |
18 | autoUpdater.autoInstallOnAppQuit = false; | 18 | autoUpdater.autoInstallOnAppQuit = false; |
19 | autoUpdater.allowPrerelease = Boolean(params.settings.app.get('beta')); | 19 | autoUpdater.allowPrerelease = Boolean(params.settings.app.get('beta')); |
20 | autoUpdater.channel = autoUpdater.allowPrerelease ? 'beta' : 'latest'; | ||
20 | 21 | ||
21 | if (params.settings.app.get('nightly')) { | 22 | if (params.settings.app.get('nightly')) { |
22 | autoUpdater.allowPrerelease = Boolean(params.settings.app.get('nightly')); | 23 | autoUpdater.allowPrerelease = Boolean(params.settings.app.get('nightly')); |
24 | autoUpdater.channel = 'alpha'; | ||
23 | autoUpdater.setFeedURL({ | 25 | autoUpdater.setFeedURL({ |
24 | provider: 'github', | 26 | provider: 'github', |
25 | owner: GITHUB_ORG_NAME, | 27 | owner: GITHUB_ORG_NAME, |