Skip to content

Commit c53aacf

Browse files
committed
Fix attempt
1 parent a5f2c76 commit c53aacf

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

assets/entitlements.plist

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
3+
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
4+
<plist version="1.0">
5+
<dict>
6+
<!-- Required for global key monitoring -->
7+
<key>com.apple.security.temporary-exception.accessibility</key>
8+
<true/>
9+
10+
<!-- If using App Sandbox (Mac App Store) -->
11+
<key>com.apple.security.app-sandbox</key>
12+
<false/>
13+
14+
<!-- Input monitoring - needed for global key events -->
15+
<key>com.apple.security.device.input-monitoring</key>
16+
<true/>
17+
</dict>
18+
</plist>

scripts/sign-macos.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env -S bash -e
22

3+
ENTITLEMENTS_PATH="assets/macos/entitlements.plist"
4+
35
APP_BUNDLE_PATH="${APP_BUNDLE_PATH:?APP_BUNDLE_PATH not set}"
46

57
# 1. Create a temporary keychain and import certificate
@@ -29,6 +31,7 @@ security set-key-partition-list -S apple-tool:,apple:,codesign: \
2931

3032
# 2. Sign app bundle
3133
codesign --deep --force --options runtime --timestamp \
34+
--entitlements $ENTITLEMENTS_PATH \
3235
--sign "$MACOS_CERTIFICATE_NAME" \
3336
"$APP_BUNDLE_PATH"
3437

0 commit comments

Comments
 (0)