Add the missing camera entitlement even on unnotarized releases that don't use the hardened runtime

This commit is contained in:
Lior Halphon
2025-07-23 23:42:11 +03:00
parent f54bfae01f
commit 2db60c2b3f
2 changed files with 10 additions and 3 deletions

View File

@@ -0,0 +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.device.camera</key>
<true/>
</dict>
</plist>

View File

@@ -553,6 +553,7 @@ $(BIN)/SameBoy.app: $(BIN)/SameBoy.app/Contents/MacOS/SameBoy \
$(shell ls Cocoa/*.icns Cocoa/*.png Cocoa/*.car) \
Cocoa/License.html \
Cocoa/Info.plist \
Cocoa/SameBoy.entitlements \
Misc/registers.sym \
$(BIN)/SameBoy.app/Contents/Resources/dmg_boot.bin \
$(BIN)/SameBoy.app/Contents/Resources/mgb_boot.bin \
@@ -573,9 +574,7 @@ $(BIN)/SameBoy.app: $(BIN)/SameBoy.app/Contents/MacOS/SameBoy \
$(MKDIR) -p $(BIN)/SameBoy.app/Contents/Resources/Shaders
cp Shaders/*.fsh Shaders/*.metal $(BIN)/SameBoy.app/Contents/Resources/Shaders
$(MKDIR) -p $(BIN)/SameBoy.app/Contents/Library/QuickLook/
ifeq ($(CONF), release)
$(CODESIGN) $@
endif
$(CODESIGN) $@ --entitlements Cocoa/SameBoy.entitlements
# We place the dylib inside the Quick Look plugin, because Quick Look plugins run in a very strict sandbox