From c9c067b286505621fbae3fc212638b45ae1c733a Mon Sep 17 00:00:00 2001 From: Bennett Date: Sun, 4 Oct 2020 16:27:26 +0200 Subject: Add setting to enable nightly releases updates (#742) Co-authored-by: Amine Mouafik --- src/electron/ipc-api/autoUpdate.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/electron') 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) => { try { autoUpdater.autoInstallOnAppQuit = false; autoUpdater.allowPrerelease = Boolean(params.settings.app.get('beta')); + + if (params.settings.app.get('nightly')) { + autoUpdater.setFeedURL({ + provider: 'github', + repo: 'nightlies', + owner: 'getferdi', + }); + } + if (args.action === 'check') { autoUpdater.checkForUpdates(); } else if (args.action === 'install') { -- cgit v1.2.3-54-g00ecf