Skip to content

Commit e9c6197

Browse files
feat(macOS): sign and notarize app (#117)
1 parent 2b0fd84 commit e9c6197

3 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/pipeline.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,19 @@ jobs:
198198
name: compiled-${{ matrix.os }}
199199
path: build
200200

201+
- name: Setup Code Signing (macOS)
202+
if: runner.os == 'macOS' && github.event_name != 'pull_request'
203+
run: |
204+
# Code signing
205+
echo 'CSC_LINK=${{ secrets.APPLE_CERT }}' >> $GITHUB_ENV
206+
echo 'CSC_KEY_PASSWORD=${{ secrets.APPLE_CERT_PASSWORD }}' >> $GITHUB_ENV
207+
# Notarization
208+
mkdir -p ~/private_keys/
209+
echo '${{ secrets.APPLE_API_KEY }}' > ~/private_keys/AuthKey_${{ secrets.APPLE_API_KEY_ID }}.p8
210+
echo 'APPLE_API_KEY=~/private_keys/AuthKey_${{ secrets.APPLE_API_KEY_ID }}.p8' >> $GITHUB_ENV
211+
echo 'APPLE_API_KEY_ID=${{ secrets.APPLE_API_KEY_ID }}' >> $GITHUB_ENV
212+
echo 'APPLE_API_ISSUER=${{ secrets.APPLE_API_ISSUER_ID }}' >> $GITHUB_ENV
213+
201214
- name: Build
202215
run: yarn run pack
203216

entitlements.mac.plist

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
<key>com.apple.security.network.client</key>
6+
<true/>
7+
<key>com.apple.security.network.server</key>
8+
<true/>
9+
<key>com.apple.security.files.user-selected.read-write</key>
10+
<true/>
11+
<key>com.apple.security.cs.allow-jit</key>
12+
<true/>
13+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
14+
<true/>
15+
<key>com.apple.security.cs.disable-library-validation</key>
16+
<true/>
17+
<key>com.apple.security.device.usb</key>
18+
<true/>
19+
</dict>
20+
</plist>

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"productName": "EdgeTX Buddy",
99
"appId": "org.edgetx.buddy",
1010
"mac": {
11+
"hardenedRuntime": true,
12+
"entitlements": "./entitlements.mac.plist",
1113
"target": [
1214
{
1315
"target": "dmg",

0 commit comments

Comments
 (0)