Skip to content

Commit

Permalink
macOS: Add missing entitlements for PCRE2 JIT
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfierke committed Apr 16, 2024
1 parent 2b7aec6 commit d5d2e4e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ jobs:
- name: Build signed & notorized release bundle
run: make release RELEASE=1 STATIC=1

- name: Smoke test the codesigned release
run: bin/mstrap --help

- name: Upload release bundle artifact
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -154,6 +157,9 @@ jobs:
- name: Build signed & notorized release bundle
run: make release RELEASE=1 STATIC=1 TARGET_ARCH=arm64

- name: Smoke test the codesigned release
run: bin/mstrap --help

- name: Upload release bundle artifact
uses: actions/upload-artifact@v3
with:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ codesign: bin/mstrap
codesign -f -v \
--timestamp \
--options runtime \
--entitlements "macos-entitlements.plist" \
-s "$(CODESIGN_IDENTITY)" \
bin/mstrap; \
fi
Expand Down
8 changes: 8 additions & 0 deletions macos-entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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/>
</dict>
</plist>

0 comments on commit d5d2e4e

Please sign in to comment.