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

@ -2,7 +2,7 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>com.apple.security.cs.disable-executable-page-protection</key> <key>com.apple.security.device.camera</key>
<true/> <true/>
</dict> </dict>
</plist> </plist>

View File

@ -38,6 +38,6 @@
<key>NSHighResolutionCapable</key> <key>NSHighResolutionCapable</key>
<string>True</string> <string>True</string>
<key>NSCameraUsageDescription</key> <key>NSCameraUsageDescription</key>
<string>Scan QR codes</string> <string>Status uses camera to scan QR codes</string>
</dict> </dict>
</plist> </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 # if MACOS_CODESIGN_IDENT is not set then the outer and inner .app
# bundles are not signed # bundles are not signed
ifdef MACOS_CODESIGN_IDENT ifdef MACOS_CODESIGN_IDENT
scripts/sign-macos-pkg.sh $(MACOS_OUTER_BUNDLE) $(MACOS_CODESIGN_IDENT) scripts/sign-macos-pkg.sh $(MACOS_OUTER_BUNDLE) $(MACOS_CODESIGN_IDENT) --entitlements Entitlements.plist
scripts/sign-macos-pkg.sh $(MACOS_INNER_BUNDLE) $(MACOS_CODESIGN_IDENT) \
--entitlements QtWebEngineProcess.plist
endif endif
echo -e $(BUILD_MSG) "dmg" echo -e $(BUILD_MSG) "dmg"
mkdir -p pkg mkdir -p pkg