Skip to content

Commit 1af6e7d

Browse files
committed
feat: add entitlements file for macOS app and configure signing identity
1 parent f95217e commit 1af6e7d

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ jobs:
107107
echo "✅ Certificate imported successfully"
108108
109109
- name: Build Tauri app (Universal Binary)
110+
env:
111+
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
110112
run: npm run tauri build -- --target universal-apple-darwin
111113

112114
- name: Notarize macOS app

src-tauri/entitlements.plist

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
<!-- Required for hardened runtime -->
6+
<key>com.apple.security.cs.allow-jit</key>
7+
<true/>
8+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
9+
<true/>
10+
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
11+
<true/>
12+
<key>com.apple.security.cs.disable-library-validation</key>
13+
<true/>
14+
15+
<!-- Network access -->
16+
<key>com.apple.security.network.client</key>
17+
<true/>
18+
<key>com.apple.security.network.server</key>
19+
<true/>
20+
</dict>
21+
</plist>

src-tauri/tauri.conf.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
],
4040
"resources": [],
4141
"macOS": {
42-
"entitlements": null,
42+
"entitlements": "entitlements.plist",
4343
"exceptionDomain": null,
4444
"frameworks": [],
4545
"providerShortName": null,
46-
"signingIdentity": "-"
46+
"signingIdentity": null
4747
}
4848
}
4949
}

0 commit comments

Comments
 (0)