Skip to content

Commit cf3e7b3

Browse files
committed
fix: add audio-input entitlement for microphone access in packaged app
Root cause: Hardened Runtime blocks microphone access without explicit com.apple.security.device.audio-input entitlement. The app never appeared in macOS Microphone privacy list because the OS silently denied the request. - Added build/entitlements.mac.plist with audio-input entitlement - Configured electron-builder to use entitlements for both main and child processes - Improved mic permission flow: opens System Settings when previously denied
1 parent 4536a9e commit cf3e7b3

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

build/entitlements.mac.plist

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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.cs.allow-jit</key>
6+
<true/>
7+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
8+
<true/>
9+
<key>com.apple.security.cs.disable-library-validation</key>
10+
<true/>
11+
<key>com.apple.security.device.audio-input</key>
12+
<true/>
13+
</dict>
14+
</plist>

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
"dmg",
4040
"zip"
4141
],
42+
"entitlements": "build/entitlements.mac.plist",
43+
"entitlementsInherit": "build/entitlements.mac.plist",
4244
"extendInfo": {
4345
"NSMicrophoneUsageDescription": "OpenWhisp needs microphone access to transcribe your speech locally."
4446
}

0 commit comments

Comments
 (0)