fix: Add camera entitlement on MacOS (#11683)

This commit is contained in:
Igor Sirotin 2023-07-27 11:39:43 +03:00 committed by GitHub
parent 6fa519a4c0
commit b9fbb7c50c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 8 deletions

View File

@ -1,8 +1,8 @@
<?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.disable-executable-page-protection</key>
<dict>
<key>com.apple.security.device.camera</key>
<true/>
</dict>
</dict>
</plist>

View File

@ -38,6 +38,6 @@
<key>NSHighResolutionCapable</key>
<string>True</string>
<key>NSCameraUsageDescription</key>
<string>Scan QR codes</string>
<string>Status uses camera to scan QR codes</string>
</dict>
</plist>

View File

@ -626,9 +626,7 @@ $(STATUS_CLIENT_DMG): nim_status_client $(DMG_TOOL)
# if MACOS_CODESIGN_IDENT is not set then the outer and inner .app
# bundles are not signed
ifdef MACOS_CODESIGN_IDENT
scripts/sign-macos-pkg.sh $(MACOS_OUTER_BUNDLE) $(MACOS_CODESIGN_IDENT)
scripts/sign-macos-pkg.sh $(MACOS_INNER_BUNDLE) $(MACOS_CODESIGN_IDENT) \
--entitlements QtWebEngineProcess.plist
scripts/sign-macos-pkg.sh $(MACOS_OUTER_BUNDLE) $(MACOS_CODESIGN_IDENT) --entitlements Entitlements.plist
endif
echo -e $(BUILD_MSG) "dmg"
mkdir -p pkg