mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-01 12:52:53 +02:00
Add the missing camera entitlement even on unnotarized releases that don't use the hardened runtime
This commit is contained in:
8
Cocoa/SameBoy.entitlements
Normal file
8
Cocoa/SameBoy.entitlements
Normal 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>
|
5
Makefile
5
Makefile
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user