File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33<plist version =" 1.0" >
4- <dict />
4+ <dict >
5+ <key >com.apple.security.device.audio-input</key >
6+ <true />
7+ </dict >
58</plist >
Original file line number Diff line number Diff line change @@ -199,6 +199,13 @@ cp -R "$APP_BUILD_PATH" "$BUILD_DIR/"
199199log_info " 验证签名..."
200200codesign --verify --verbose=2 " $BUILD_DIR /$APP_NAME .app"
201201
202+ # 录制功能需要麦克风输入权限;Hardened Runtime 下必须把 audio-input entitlement 签进应用。
203+ if ! codesign -d --entitlements :- " $BUILD_DIR /$APP_NAME .app" 2> /dev/null | \
204+ grep -q " com.apple.security.device.audio-input" ; then
205+ log_error " 缺少麦克风输入 entitlement: com.apple.security.device.audio-input"
206+ exit 1
207+ fi
208+
202209# 验证 Sparkle framework 签名
203210SPARKLE_FRAMEWORK=" $BUILD_DIR /$APP_NAME .app/Contents/Frameworks/Sparkle.framework"
204211if [ -d " $SPARKLE_FRAMEWORK " ]; then
You can’t perform that action at this time.
0 commit comments