git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 2db60c2b3f455f32e9f520b18eebc22cf7b71fc9
parent f54bfae01f557a5aae78ee4ece0b357e9dd8d994
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Wed, 23 Jul 2025 23:42:11 +0300

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

Diffstat:
ACocoa/SameBoy.entitlements9+++++++++
MMakefile5++---
2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/Cocoa/SameBoy.entitlements b/Cocoa/SameBoy.entitlements @@ -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> + diff --git a/Makefile b/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

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.