mirror of
https://github.com/yincongcyincong/wechat_chatter.git
synced 2026-07-15 10:26:52 +08:00
fix(script): handle paths with spaces in codesign find pipeline
This commit is contained in:
@@ -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 "完成!"
|
||||
|
||||
Reference in New Issue
Block a user