Add MacOS entitlements to fix TouchID integration

* Fix #2676
This commit is contained in:
Jonathan White 2019-02-05 12:05:46 -05:00
parent b4de4369eb
commit 8e596165ab
2 changed files with 25 additions and 1 deletions

View File

@ -1147,7 +1147,7 @@ appsign() {
fi
logInfo "Signing app using codesign..."
codesign --sign "${key}" --verbose --deep ./app/KeePassXC.app
codesign --sign "${key}" --verbose --deep --entitlements ${orig_dir}/share/macosx/keepassxc.entitlements ./app/KeePassXC.app
if [ 0 -ne $? ]; then
cd "${orig_dir}"

View File

@ -0,0 +1,24 @@
<?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.application-identifier</key>
<string>org.keepassx.keepassxc</string>
<key>com.apple.developer.aps-environment</key>
<string>production</string>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.print</key>
<true/>
<key>com.apple.security.app-sandbox</key>
<false/>
<key>keychain-access-groups</key>
<array>
<string>org.keepassx.keepassxc</string>
</array>
<key>com.apple.security.files.user-selected.read-only</key>
<false/>
</dict>
</plist>