Skip to content

Commit

Permalink
Stash
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Nov 4, 2024
1 parent 9bb4eb5 commit 7dedd7c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
33 changes: 33 additions & 0 deletions build/entitlements-sandbox.mac.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?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>
<!-- https://github.com/electron/electron-notarize#prerequisites -->
<key>com.apple.security.cs.allow-jit</key>
<true/>

<!-- https://github.com/electron-userland/electron-builder/issues/3940 -->
<key>com.apple.security.cs.disable-library-validation</key>
<true/>

<!-- Enable the app sandbox -->
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.inherit</key>
<true/>

<!-- Allow opening outgoing network connections -->
<key>com.apple.security.network.client</key>
<true/>

<!-- Allow opening & saving files for upload & download -->
<key>com.apple.security.files.user-selected.read-write</key>
<true/>

<!-- Access to camera & microphone for calls ->
<key>com.apple.security.device.camera</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
</dict>
</plist>
4 changes: 0 additions & 4 deletions build/entitlements.mac.plist
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
<key>com.apple.security.cs.disable-library-validation</key>
<true/>

<!-- Enable the app sandbox -->
<key>com.apple.security.app-sandbox</key>
<true/>

<!-- Allow opening outgoing network connections -->
<key>com.apple.security.network.client</key>
<true/>
Expand Down
2 changes: 2 additions & 0 deletions electron-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,13 @@ if (process.env.ED_SIGNTOOL_SUBJECT_NAME && process.env.ED_SIGNTOOL_THUMBPRINT)
/**
* Allow specifying ElectronTeamID via env vars
* @param {string} process.env.APPLE_TEAM_ID
* Workaround for https://github.com/electron-userland/electron-builder/issues/7995
*/
if (process.env.APPLE_TEAM_ID) {
config.mac.extendInfo = {
ElectronTeamID: process.env.APPLE_TEAM_ID,
};
config.mac.entitlements = "./build/entitlements-sandbox.mac.plist";
}

/**
Expand Down

0 comments on commit 7dedd7c

Please sign in to comment.