aboutsummaryrefslogtreecommitdiffstats
path: root/src/electron
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-10-04 16:27:26 +0200
committerLibravatar GitHub <noreply@github.com>2020-10-04 15:27:26 +0100
commitc9c067b286505621fbae3fc212638b45ae1c733a (patch)
treebeb3001b26ec3ffc05528d11fe60033971655a7c /src/electron
parentFine-tune nightly releases scripts (diff)
downloadferdium-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')
-rw-r--r--src/electron/ipc-api/autoUpdate.js9
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') {