From 73483e4ebd4cae37f8ee17bfbd64523882db3ec5 Mon Sep 17 00:00:00 2001 From: Sebastian Richner Date: Tue, 20 Feb 2024 10:15:34 +0100 Subject: [PATCH] Add entitlements and permissions --- src/electron/build/entitlements.mac.plist | 14 ++++++++++++ src/electron/electron-builder.json5 | 28 ++++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 src/electron/build/entitlements.mac.plist diff --git a/src/electron/build/entitlements.mac.plist b/src/electron/build/entitlements.mac.plist new file mode 100644 index 00000000..77d5c2aa --- /dev/null +++ b/src/electron/build/entitlements.mac.plist @@ -0,0 +1,14 @@ + + + + + com.apple.security.cs.allow-jit + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.allow-dyld-environment-variables + + com.apple.security.automation.apple-events + + + diff --git a/src/electron/electron-builder.json5 b/src/electron/electron-builder.json5 index aee08244..b0252273 100644 --- a/src/electron/electron-builder.json5 +++ b/src/electron/electron-builder.json5 @@ -22,7 +22,33 @@ target: [ 'dmg' ], - artifactName: '${productName}-Mac-${version}-Installer.${ext}' + artifactName: '${productName}-Mac-${version}-Installer.${ext}', + entitlements: 'build/entitlements.mac.plist', + entitlementsInherit: 'build/entitlements.mac.plist', + hardenedRuntime: true, + gatekeeperAssess: false, + extendInfo: [ + { + key: 'NSAppleEventsUsageDescription', + value: 'TBD' + }, + { + key: 'NSCameraUsageDescription', + value: 'TBD' + }, + { + key: 'NSMicrophoneUsageDescription', + value: 'TBD' + }, + { + key: 'NSDocumentsFolderUsageDescription', + value: 'TBD' + }, + { + key: 'NSDownloadsFolderUsageDescription', + value: 'TBD' + } + ] }, win: { target: [