Skip to content

Commit 3c8b81a

Browse files
authored
add macOs entitlements (#4955)
* add macOs entitlements * notarize apple binaries
1 parent f180d79 commit 3c8b81a

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/actions/sign-macos/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ runs:
4646
ENTITLEMENTS_ARG="--entitlements ${{ inputs.entitlements }}"
4747
fi
4848
49-
codesign --force --options runtime --timestamp $ENTITLEMENTS_ARG\
49+
codesign --force --options runtime --timestamp $ENTITLEMENTS_ARG \
5050
--sign "${{ inputs.signing-identity }}" "$path"
5151
5252
echo "🔍 Verifying signature for: $path"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<!-- Allow unsigned executable memory (required for WASM/JIT execution) -->
6+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
7+
<true/>
8+
</dict>
9+
</plist>

.github/workflows/cd.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,24 @@ jobs:
108108
SM_CERT_FINGERPRINT: ${{ secrets.SM_CERT_FINGERPRINT }}
109109
SM_HOST: ${{ secrets.SM_HOST }}
110110

111-
- name: Sign Macos binaries
111+
- name: Sign macOS binaries
112112
uses: ./.github/actions/sign-macos
113113
if: ${{ runner.os == 'macOS' }}
114114
with:
115115
paths: "$MASSA_CLIENT_PATH $MASSA_NODE_PATH"
116116
certificate-p12-base64: ${{ secrets.APPLE_CERTIFICATE_P12_BASE64 }}
117117
certificate-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
118118
signing-identity: ${{ vars.APPLE_DEVELOPER_ID_APPLICATION }}
119+
entitlements: .github/actions/sign-macos/entitlements.plist
120+
121+
- name: Notarize macOS binaries
122+
uses: ./.github/actions/notarize-macos
123+
if: ${{ runner.os == 'macOS' }}
124+
with:
125+
paths: "$MASSA_CLIENT_PATH $MASSA_NODE_PATH"
126+
apple-id: ${{ secrets.APPLE_ID }}
127+
apple-team-id: ${{ secrets.APPLE_TEAM_ID }}
128+
apple-app-password: ${{ secrets.APPLE_APP_PASSWORD }}
119129

120130
- name: Package
121131
shell: bash

0 commit comments

Comments
 (0)