From 1b7460b5f5398f2ee9cdf16f8decd232b0135a7a Mon Sep 17 00:00:00 2001
From: Richie McIlroy <33632126+richiemcilroy@users.noreply.github.com>
Date: Tue, 19 Mar 2024 16:56:04 +0000
Subject: [PATCH] fix: Add App.entitlements file
---
apps/desktop/src-tauri/App.entitlements | 30 +++++++++++++++++++++++++
apps/desktop/src-tauri/Info.plist | 24 --------------------
apps/desktop/src-tauri/tauri.conf.json | 5 ++++-
3 files changed, 34 insertions(+), 25 deletions(-)
create mode 100644 apps/desktop/src-tauri/App.entitlements
diff --git a/apps/desktop/src-tauri/App.entitlements b/apps/desktop/src-tauri/App.entitlements
new file mode 100644
index 00000000..c8a4b464
--- /dev/null
+++ b/apps/desktop/src-tauri/App.entitlements
@@ -0,0 +1,30 @@
+
+
+
+
+ com.apple.security.cs.allow-jit
+
+ com.apple.security.cs.allow-unsigned-executable-memory
+
+ com.apple.security.cs.disable-library-validation
+
+ com.apple.security.cs.allow-dyld-environment-variables
+
+ com.apple.security.automation.apple-events
+
+ com.apple.security.device.usb
+
+ com.apple.security.device.camera
+
+ com.apple.security.device.microphone
+
+ com.apple.security.device.audio-input
+
+ com.apple.security.network.server
+
+ com.apple.security.network.client
+
+ com.apple.security.inherit
+
+
+
\ No newline at end of file
diff --git a/apps/desktop/src-tauri/Info.plist b/apps/desktop/src-tauri/Info.plist
index 559140f3..7ce60eec 100644
--- a/apps/desktop/src-tauri/Info.plist
+++ b/apps/desktop/src-tauri/Info.plist
@@ -2,30 +2,6 @@
- com.apple.security.cs.allow-jit
-
- com.apple.security.cs.allow-unsigned-executable-memory
-
- com.apple.security.cs.disable-library-validation
-
- com.apple.security.cs.allow-dyld-environment-variables
-
- com.apple.security.automation.apple-events
-
- com.apple.security.device.usb
-
- com.apple.security.device.camera
-
- com.apple.security.device.microphone
-
- com.apple.security.device.audio-input
-
- com.apple.security.network.server
-
- com.apple.security.network.client
-
- com.apple.security.inherit
-
NSCameraUsageDescription
Request camera access for WebRTC
NSMicrophoneUsageDescription
diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json
index 37cb620b..f9d54b09 100644
--- a/apps/desktop/src-tauri/tauri.conf.json
+++ b/apps/desktop/src-tauri/tauri.conf.json
@@ -65,7 +65,10 @@
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
- ]
+ ],
+ "macOS": {
+ "entitlements": "App.entitlements"
+ }
},
"security": {
"csp": null