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",