Skip to content

Commit

Permalink
Add entitlements and permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
SRichner committed Feb 20, 2024
1 parent cfdb1ff commit 73483e4
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/electron/build/entitlements.mac.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.automation.apple-events</key>
<true/>
</dict>
</plist>
28 changes: 27 additions & 1 deletion src/electron/electron-builder.json5
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 73483e4

Please sign in to comment.