now you can change also the bundle id
This commit is contained in:
7
sign.sh
7
sign.sh
@@ -3,6 +3,7 @@ SOURCEIPA="$1"
|
||||
DEVELOPER="$2"
|
||||
MOBILEPROV="$3"
|
||||
TARGET="$4"
|
||||
BUNDLE="$5"
|
||||
|
||||
unzip -qo "$SOURCEIPA" -d extracted
|
||||
|
||||
@@ -10,8 +11,12 @@ APPLICATION=$(ls extracted/Payload/)
|
||||
|
||||
cp "$MOBILEPROV" "extracted/Payload/$APPLICATION/embedded.mobileprovision"
|
||||
|
||||
echo "Resigning with certificate: $DEVELOPER" >&2
|
||||
echo "Resigning with certificate: $DEVELOPER"
|
||||
find -d extracted \( -name "*.app" -o -name "*.appex" -o -name "*.framework" -o -name "*.dylib" \) > directories.txt
|
||||
if [ "$BUNDLE" != 'null.null' ]; then
|
||||
echo "Changing BundleID with : $BUNDLE"
|
||||
/usr/libexec/PlistBuddy -c "Set:CFBundleIdentifier $BUNDLE" "extracted/Payload/$APPLICATION/Info.plist"
|
||||
fi
|
||||
security cms -D -i "extracted/Payload/$APPLICATION/embedded.mobileprovision" > t_entitlements_full.plist
|
||||
/usr/libexec/PlistBuddy -x -c 'Print:Entitlements' t_entitlements_full.plist > t_entitlements.plist
|
||||
#/usr/libexec/PlistBuddy -c 'Print:application-identifier' t_entitlements.plist > t_entitlements_application-identifier #save developer application-identifier to file
|
||||
|
||||
Reference in New Issue
Block a user