Skip to content

Commit

Permalink
Added Mac signing entitlements (#8172)
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink authored Sep 24, 2024
2 parents cb8e537 + 1ae42e1 commit a81b03d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions build/mac/entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- This file was copied from https://github.com/pyinstaller/pyinstaller/issues/4629#issuecomment-574375331 -->
<?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>
<!-- These are required for binaries built by PyInstaller -->
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion build/mac/sign_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ fi

echo "Signing $APP_FILE with Apple Dev ID: $APPLE_DEV_ID"
SIGN_MSG="Developer ID Application: $APPLE_DEV_ID"
codesign --deep --force --verbose --sign "$SIGN_MSG" --options runtime $APP_FILE
codesign --deep --force --verbose --sign "$SIGN_MSG" --entitlements ./build/mac/entitlements.plist --options runtime $APP_FILE

0 comments on commit a81b03d

Please sign in to comment.