fix(script): handle paths with spaces in codesign find pipeline

This commit is contained in:
kongfei605
2026-01-19 15:08:01 +08:00
parent 88a3463441
commit 4ea9c6a44f
+3 -2
View File
@@ -9,9 +9,10 @@ codesign -f -s - --timestamp=none "$GADGET_PATH"
echo "开始对所有子框架进行深层签名..."
# 遍历微信内部所有的 Frameworks 和 dylib 进行签名
find "$APP_PATH/Contents" -name "*.framework" -or -name "*.dylib" -or -name "*.bundle" | xargs codesign -f -s - --timestamp=none
find "$APP_PATH/Contents" \( -name "*.framework" -o -name "*.dylib" -o -name "*.bundle" \) -print0 \
| xargs -0 codesign -f -s - --timestamp=none
echo "最后对主程序进行签名并注入 Entitlements..."
codesign -f -s - --timestamp=none --entitlements "$ENTITLEMENTS" --force "$APP_PATH"
echo "完成!"
echo "完成!"