diff options
author | Bennett <hello@vantezzen.io> | 2020-10-04 16:27:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 15:27:26 +0100 |
commit | c9c067b286505621fbae3fc212638b45ae1c733a (patch) | |
tree | beb3001b26ec3ffc05528d11fe60033971655a7c /src/electron/ipc-api | |
parent | Fine-tune nightly releases scripts (diff) | |
download | ferdium-app-c9c067b286505621fbae3fc212638b45ae1c733a.tar.gz ferdium-app-c9c067b286505621fbae3fc212638b45ae1c733a.tar.zst ferdium-app-c9c067b286505621fbae3fc212638b45ae1c733a.zip |
Add setting to enable nightly releases updates (#742)
Co-authored-by: Amine Mouafik <amine@mouafik.fr>
Diffstat (limited to 'src/electron/ipc-api')
-rw-r--r-- | src/electron/ipc-api/autoUpdate.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/electron/ipc-api/autoUpdate.js b/src/electron/ipc-api/autoUpdate.js index 8c4d908dc..148ca5640 100644 --- a/src/electron/ipc-api/autoUpdate.js +++ b/src/electron/ipc-api/autoUpdate.js | |||
@@ -15,6 +15,15 @@ export default (params) => { | |||
15 | try { | 15 | try { |
16 | autoUpdater.autoInstallOnAppQuit = false; | 16 | autoUpdater.autoInstallOnAppQuit = false; |
17 | autoUpdater.allowPrerelease = Boolean(params.settings.app.get('beta')); | 17 | autoUpdater.allowPrerelease = Boolean(params.settings.app.get('beta')); |
18 | |||
19 | if (params.settings.app.get('nightly')) { | ||
20 | autoUpdater.setFeedURL({ | ||
21 | provider: 'github', | ||
22 | repo: 'nightlies', | ||
23 | owner: 'getferdi', | ||
24 | }); | ||
25 | } | ||
26 | |||
18 | if (args.action === 'check') { | 27 | if (args.action === 'check') { |
19 | autoUpdater.checkForUpdates(); | 28 | autoUpdater.checkForUpdates(); |
20 | } else if (args.action === 'install') { | 29 | } else if (args.action === 'install') { |