fix: Add camera entitlement on MacOS (#11683)
This commit is contained in:
parent
6fa519a4c0
commit
b9fbb7c50c
|
@ -1,8 +1,8 @@
|
||||||
<?xml version="1.0" encoding="UTF-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">
|
<!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>
|
|
@ -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>
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue