Skip to content

Commit

Permalink
chore(ci): adds allow-unsigned-executable-memory to MacOS entitlements (
Browse files Browse the repository at this point in the history
  • Loading branch information
EverlastingBugstopper authored Mar 31, 2021
1 parent 61edff3 commit b585f11
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,15 @@ jobs:
- name: Codesign (MacOS)
if: matrix.build == 'macos'
run: |
/usr/bin/codesign --force --sign ${{ env.APPLE_TEAM_ID }} --options runtime --timestamp ./dist/${{ env.RELEASE_BIN }} -v
/usr/bin/codesign \
--sign ${{ env.APPLE_TEAM_ID }} \
--options runtime \
--entitlements ./macos-entitlements.plist \
--force \
--timestamp \
./dist/${{ env.RELEASE_BIN }} \
-v
/usr/bin/codesign -vvv --deep --strict ./dist/${{ env.RELEASE_BIN }}
- name: Prepare zip for notarization (MacOS)
Expand Down
16 changes: 16 additions & 0 deletions macos-entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?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.disable-executable-page-protection</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>

0 comments on commit b585f11

Please sign in to comment.