From 94f005a6f35ca5e080dd06a3c4aa6d96e773920f Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Fri, 25 Jul 2025 03:58:01 +0800 Subject: [PATCH] fix(stage-tamagotchi): macOS permission of microphone --- apps/stage-tamagotchi/src-tauri/Entitlements.plist | 10 ++++++++++ apps/stage-tamagotchi/src-tauri/Info.plist | 2 ++ apps/stage-tamagotchi/src-tauri/tauri.conf.json | 3 +++ 3 files changed, 15 insertions(+) create mode 100644 apps/stage-tamagotchi/src-tauri/Entitlements.plist diff --git a/apps/stage-tamagotchi/src-tauri/Entitlements.plist b/apps/stage-tamagotchi/src-tauri/Entitlements.plist new file mode 100644 index 000000000..afd31904e --- /dev/null +++ b/apps/stage-tamagotchi/src-tauri/Entitlements.plist @@ -0,0 +1,10 @@ + + + + + com.apple.security.device.camera + + com.apple.security.device.audio-input + + + diff --git a/apps/stage-tamagotchi/src-tauri/Info.plist b/apps/stage-tamagotchi/src-tauri/Info.plist index f6d8a967f..1acd23c01 100644 --- a/apps/stage-tamagotchi/src-tauri/Info.plist +++ b/apps/stage-tamagotchi/src-tauri/Info.plist @@ -2,6 +2,8 @@ + NSCameraUsageDescription + Request camera access NSMicrophoneUsageDescription Request microphone access diff --git a/apps/stage-tamagotchi/src-tauri/tauri.conf.json b/apps/stage-tamagotchi/src-tauri/tauri.conf.json index 730f9a339..5f8f8a328 100644 --- a/apps/stage-tamagotchi/src-tauri/tauri.conf.json +++ b/apps/stage-tamagotchi/src-tauri/tauri.conf.json @@ -28,6 +28,9 @@ ], "resources": { "infoplist/**/*": "./" + }, + "macOS": { + "entitlements": "./Entitlements.plist" } } }