Created
September 15, 2011 12:26
-
-
Save jamztang/1219107 to your computer and use it in GitHub Desktop.
Script that archive an .app to .ipa for iOS developement builds - makeIpaFromApp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#init | |
#function pause() { | |
#read -p "$*" | |
#} | |
payloadDIR="Payload" | |
#if [ -d $payloadDIR ] | |
#then | |
# echo "Warning, your files in " . $payloadDIR . " will be removed". | |
# pause 'Press ^C to quit' | |
#fi | |
rm -rf $payloadDIR | |
mkdir $payloadDIR | |
cp -rp $1 $payloadDIR/ | |
base=`basename "$1" .app` | |
output=$base"_$(date +%Y%m%d%H%M).app.ipa" | |
zip -r "$output" $payloadDIR | |
rm -rf $payloadDIR | |
echo " | |
> $output created" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment