Skip to content

Commit

Permalink
Fix issue with access to camera/microphone
Browse files Browse the repository at this point in the history
Closes #1363
Fixes #1128
Fixes #1082
Fixes #1361
  • Loading branch information
sindresorhus committed Jun 27, 2020
1 parent 9a7978a commit afb1404
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
16 changes: 16 additions & 0 deletions build/entitlements.mac.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.device.camera</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
</dict>
</plist>
14 changes: 0 additions & 14 deletions build/entitlements.mas.plist

This file was deleted.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@
"electronUpdaterCompatibility": ">=2.15.0",
"darkModeSupport": true,
"extendInfo": {
"LSUIElement": 1
"LSUIElement": 1,
"NSCameraUsageDescription": "Caprine needs access to your camera.",
"NSMicrophoneUsageDescription": "Caprine needs access to your microphone."
}
},
"dmg": {
Expand Down

0 comments on commit afb1404

Please sign in to comment.