jamztang
9/15/2011 - 12:26 PM

Script that archive an .app to .ipa for iOS developement builds - makeIpaFromApp

Script that archive an .app to .ipa for iOS developement builds - makeIpaFromApp

#!/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"