app to ipa shell

#!/bin/sh

path=$1

ipaDir=${path%/*}

ipaName=${path%.*}.ipa

cd ${ipaDir}
mkdir Payload
cp -R ${path} Payload
zip -r -s 64 Payload.zip Payload
rm -rf Payload
mv Payload.zip ${ipaName}

exit $?

https://stackoverflow.com/a/35150117

你可能感兴趣的:(app to ipa shell)