fix entitlements

This commit is contained in:
somebasj
2022-10-24 13:54:22 +08:00
parent 9129229c23
commit 3f3840ba75
4 changed files with 11 additions and 9 deletions

View File

@@ -13,6 +13,7 @@ function export_entitlements() {
codesign -d --entitlements - --xml "$1" 2>/dev/null | plutil -convert xml1 -o - - > "$2"
/usr/libexec/PlistBuddy -c "Delete :com.apple.security.application-groups" "$2" 2>/dev/null
/usr/libexec/PlistBuddy -c "Delete :com.apple.developer.team-identifier" "$2" 2>/dev/null
/usr/libexec/PlistBuddy -c "Delete :keychain-access-groups" "$2" 2>/dev/null
sed -i "" "s/4C6364ACXT\.//g" "$2"
}