diff options
author | Vijay A <avijayr@protonmail.com> | 2021-08-26 11:47:17 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-08-26 11:47:50 +0530 |
commit | 9bfd90717bae8360774db179862945d2e232cf27 (patch) | |
tree | 82f09d2b75e48845eeeec3589a5143b0256c3c33 | |
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.
-rw-r--r-- | src/electron/ipc-api/autoUpdate.js | 2 | ||||
-rw-r--r-- | src/stores/AppStore.js | 1 |
2 files changed, 2 insertions, 1 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, |
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 9c8cce679..cb8c71268 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -567,7 +567,6 @@ export default class AppStore extends Store { | |||
567 | debug('Checking if Do Not Disturb Mode is on'); | 567 | debug('Checking if Do Not Disturb Mode is on'); |
568 | const dnd = await ipcRenderer.invoke('get-dnd'); | 568 | const dnd = await ipcRenderer.invoke('get-dnd'); |
569 | debug('Do not disturb mode is', dnd); | 569 | debug('Do not disturb mode is', dnd); |
570 | // ipcRenderer.on('autoUpdate', (event, data) => { | ||
571 | if ( | 570 | if ( |
572 | dnd !== this.stores.settings.all.app.isAppMuted | 571 | dnd !== this.stores.settings.all.app.isAppMuted |
573 | && !this.isSystemMuteOverridden | 572 | && !this.isSystemMuteOverridden |