diff options
author | 2021-06-02 11:58:43 +0530 | |
---|---|---|
committer | 2021-06-02 15:56:56 +0530 | |
commit | a8bb0c46b072960c5f1596c0e27531bb14e720c8 (patch) | |
tree | 653a30b6d760dba00320e0c6a60e8ae25b15ae24 | |
parent | docs: add prasann as a contributor (#1477) (diff) | |
download | ferdium-app-a8bb0c46b072960c5f1596c0e27531bb14e720c8.tar.gz ferdium-app-a8bb0c46b072960c5f1596c0e27531bb14e720c8.tar.zst ferdium-app-a8bb0c46b072960c5f1596c0e27531bb14e720c8.zip |
Allow nightlies as pre-releases (possible fix for broken updater in nightlies).
-rw-r--r-- | electron-builder.yml | 6 | ||||
-rw-r--r-- | src/electron/ipc-api/autoUpdate.js | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/electron-builder.yml b/electron-builder.yml index efb967ba1..0e8516583 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 ec7fa9d8a..58eda801c 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', |