From eaf30a4de79ab1ec916bd7a5162353ec7787d5d4 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Tue, 28 Jul 2026 13:40:44 -0500 Subject: [PATCH] build(desktop): declare camera usage for signed macOS builds A hardened-runtime build needs the camera entitlement and an NSCameraUsageDescription string, or the packaged app is killed on first camera access instead of prompting. --- apps/desktop/electron/entitlements.mac.inherit.plist | 2 ++ apps/desktop/electron/entitlements.mac.plist | 2 ++ apps/desktop/package.json | 1 + 3 files changed, 5 insertions(+) diff --git a/apps/desktop/electron/entitlements.mac.inherit.plist b/apps/desktop/electron/entitlements.mac.inherit.plist index 53fdf0fc437..a3defc5f8cf 100644 --- a/apps/desktop/electron/entitlements.mac.inherit.plist +++ b/apps/desktop/electron/entitlements.mac.inherit.plist @@ -10,5 +10,7 @@ com.apple.security.device.audio-input + com.apple.security.device.camera + diff --git a/apps/desktop/electron/entitlements.mac.plist b/apps/desktop/electron/entitlements.mac.plist index 53fdf0fc437..a3defc5f8cf 100644 --- a/apps/desktop/electron/entitlements.mac.plist +++ b/apps/desktop/electron/entitlements.mac.plist @@ -10,5 +10,7 @@ com.apple.security.device.audio-input + com.apple.security.device.camera + diff --git a/apps/desktop/package.json b/apps/desktop/package.json index 91e51e6fbf0..01f0e45eb7b 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -220,6 +220,7 @@ "CFBundleExecutable": "Hermes", "CFBundleName": "Hermes", "NSAudioCaptureUsageDescription": "Hermes uses audio capture for voice conversations.", + "NSCameraUsageDescription": "Hermes uses the camera when a plugin or feature you enable requests it.", "NSMicrophoneUsageDescription": "Hermes uses the microphone for voice input and voice conversations." }, "gatekeeperAssess": false,