Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ScreenPresenter/ScreenPresenter.entitlements
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
<dict>
<key>com.apple.security.device.audio-input</key>
<true/>
</dict>
</plist>
7 changes: 7 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,13 @@ cp -R "$APP_BUILD_PATH" "$BUILD_DIR/"
log_info "验证签名..."
codesign --verify --verbose=2 "$BUILD_DIR/$APP_NAME.app"

# 录制功能需要麦克风输入权限;Hardened Runtime 下必须把 audio-input entitlement 签进应用。
if ! codesign -d --entitlements :- "$BUILD_DIR/$APP_NAME.app" 2>/dev/null | \
grep -q "com.apple.security.device.audio-input"; then
log_error "缺少麦克风输入 entitlement: com.apple.security.device.audio-input"
exit 1
fi

# 验证 Sparkle framework 签名
SPARKLE_FRAMEWORK="$BUILD_DIR/$APP_NAME.app/Contents/Frameworks/Sparkle.framework"
if [ -d "$SPARKLE_FRAMEWORK" ]; then
Expand Down
Loading