Skip to content

Commit 21a0da3

Browse files
authored
Merge branch 'main' into dc6_buddybackup
2 parents e6cae23 + e9c6197 commit 21a0da3

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

.github/workflows/pipeline.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,19 @@ jobs:
207207
name: compiled-${{ matrix.os }}
208208
path: build
209209

210+
- name: Setup Code Signing (macOS)
211+
if: runner.os == 'macOS' && github.event_name != 'pull_request'
212+
run: |
213+
# Code signing
214+
echo 'CSC_LINK=${{ secrets.APPLE_CERT }}' >> $GITHUB_ENV
215+
echo 'CSC_KEY_PASSWORD=${{ secrets.APPLE_CERT_PASSWORD }}' >> $GITHUB_ENV
216+
# Notarization
217+
mkdir -p ~/private_keys/
218+
echo '${{ secrets.APPLE_API_KEY }}' > ~/private_keys/AuthKey_${{ secrets.APPLE_API_KEY_ID }}.p8
219+
echo 'APPLE_API_KEY=~/private_keys/AuthKey_${{ secrets.APPLE_API_KEY_ID }}.p8' >> $GITHUB_ENV
220+
echo 'APPLE_API_KEY_ID=${{ secrets.APPLE_API_KEY_ID }}' >> $GITHUB_ENV
221+
echo 'APPLE_API_ISSUER=${{ secrets.APPLE_API_ISSUER_ID }}' >> $GITHUB_ENV
222+
210223
- name: Build
211224
run: yarn run pack
212225

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: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,22 @@
88
"productName": "EdgeTX Buddy",
99
"appId": "org.edgetx.buddy",
1010
"mac": {
11+
"hardenedRuntime": true,
12+
"entitlements": "./entitlements.mac.plist",
13+
"target": [
14+
{
15+
"target": "dmg",
16+
"arch": [
17+
"x64",
18+
"arm64"
19+
]
20+
}
21+
],
1122
"publish": [
1223
"github"
1324
],
1425
"category": "your.app.category.type",
15-
"artifactName": "edgetx-buddy-${version}.${ext}"
26+
"artifactName": "edgetx-buddy-${version}-${arch}.${ext}"
1627
},
1728
"linux": {
1829
"publish": [

0 commit comments

Comments
 (0)