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: [