aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-06-02 11:58:43 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-06-02 15:56:56 +0530
commita8bb0c46b072960c5f1596c0e27531bb14e720c8 (patch)
tree653a30b6d760dba00320e0c6a60e8ae25b15ae24
parentdocs: add prasann as a contributor (#1477) (diff)
downloadferdi-a8bb0c46b072960c5f1596c0e27531bb14e720c8.tar.gz
ferdi-a8bb0c46b072960c5f1596c0e27531bb14e720c8.tar.zst
ferdi-a8bb0c46b072960c5f1596c0e27531bb14e720c8.zip
Allow nightlies as pre-releases (possible fix for broken updater in nightlies).
-rw-r--r--electron-builder.yml6
-rw-r--r--src/electron/ipc-api/autoUpdate.js1
2 files changed, 4 insertions, 3 deletions
diff --git a/electron-builder.yml b/electron-builder.yml
index efb967ba..0e851658 100644
--- a/electron-builder.yml
+++ b/electron-builder.yml
@@ -16,9 +16,9 @@ mac:
16 entitlementsInherit: "./build-helpers/entitlements.mas.inherit.plist" 16 entitlementsInherit: "./build-helpers/entitlements.mas.inherit.plist"
17 target: 17 target:
18 - target: dmg 18 - target: dmg
19 arch: 19 arch: [x64, arm64]
20 - x64 20 - target: zip
21 - arm64 21 arch: [x64, arm64]
22 extendInfo: 22 extendInfo:
23 NSCameraUsageDescription: "This app requires camera access for video chats" 23 NSCameraUsageDescription: "This app requires camera access for video chats"
24 NSMicrophoneUsageDescription: "This app requires microphone access for voice chats" 24 NSMicrophoneUsageDescription: "This app requires microphone access for voice chats"
diff --git a/src/electron/ipc-api/autoUpdate.js b/src/electron/ipc-api/autoUpdate.js
index ec7fa9d8..58eda801 100644
--- a/src/electron/ipc-api/autoUpdate.js
+++ b/src/electron/ipc-api/autoUpdate.js
@@ -18,6 +18,7 @@ export default (params) => {
18 autoUpdater.allowPrerelease = Boolean(params.settings.app.get('beta')); 18 autoUpdater.allowPrerelease = Boolean(params.settings.app.get('beta'));
19 19
20 if (params.settings.app.get('nightly')) { 20 if (params.settings.app.get('nightly')) {
21 autoUpdater.allowPrerelease = Boolean(params.settings.app.get('nightly'));
21 autoUpdater.setFeedURL({ 22 autoUpdater.setFeedURL({
22 provider: 'github', 23 provider: 'github',
23 repo: 'nightlies', 24 repo: 'nightlies',