From 6046dc8fe204ff9189bf005f236ba0bab829b72c Mon Sep 17 00:00:00 2001 From: XianHong Date: Fri, 28 Aug 2020 12:33:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E8=AE=BF=E9=97=AEmac?= =?UTF-8?q?=E6=91=84=E5=83=8F=E5=A4=B4=E5=92=8C=E9=BA=A6=E5=85=8B=E9=A3=8E?= =?UTF-8?q?=E7=9A=84=E6=8E=88=E6=9D=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TRTCEducation/entitlements.mac.plist | 10 ++++++++++ Electron/TRTCScenesDemo/TRTCEducation/package.json | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 Electron/TRTCScenesDemo/TRTCEducation/entitlements.mac.plist diff --git a/Electron/TRTCScenesDemo/TRTCEducation/entitlements.mac.plist b/Electron/TRTCScenesDemo/TRTCEducation/entitlements.mac.plist new file mode 100644 index 00000000..c2fcd7b3 --- /dev/null +++ b/Electron/TRTCScenesDemo/TRTCEducation/entitlements.mac.plist @@ -0,0 +1,10 @@ + + + + + com.apple.security.device.audio-input + + com.apple.security.device.camera + + + diff --git a/Electron/TRTCScenesDemo/TRTCEducation/package.json b/Electron/TRTCScenesDemo/TRTCEducation/package.json index f640c55f..729679e5 100644 --- a/Electron/TRTCScenesDemo/TRTCEducation/package.json +++ b/Electron/TRTCScenesDemo/TRTCEducation/package.json @@ -77,6 +77,12 @@ ] }, "mac": { + "entitlements": "entitlements.mac.plist", + "hardenedRuntime": true, + "extendInfo": { + "NSMicrophoneUsageDescription": "请允许本程序访问您的麦克风", + "NSCameraUsageDescription": "请允许本程序访问您的摄像头" + }, "extraFiles": [ { "from": "node_modules/trtc-electron-sdk/build/Release",