用于打包iOS的AIR应用程序的Shell脚本
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用于打包iOS的AIR应用程序的Shell脚本相关的知识,希望对你有一定的参考价值。
If you are developing for ios with AIR and are deleting/removing applications from iTunes/device each time you want to test you will want to read this.
#!/bin/bash count=`cat counter` echo "COUNT: $count" echo $((count+1)) > counter # Application Name appname=$1 # COMPILE TYPE ( ipa-test | ipa-debug | ipa-app-store | ipa-ad-hoc ) COMPILE_TYPE=$2 # UPDATE APP XML (VERSION) OLD="APP_VERSION" sed "s/$OLD/$count/g" $appname-app.xml > $appname-appV.xml # CONSTANTS USER_WORKSPACE=/Users/user/Documents/workspaces AIR_SDK=$USER_WORKSPACE/FlexSDKs/AIR26_mac_sdk_19120 IPHONE_DEV=$USER_WORKSPACE/iPhoneDev rm -Rf *.ipa # BUILDING startTime=`eval date +%s` $AIR_SDK/bin/adt -version $AIR_SDK/bin/adt -package -target $COMPILE_TYPE -provisioning-profile $IPHONE_DEV/MyDev.mobileprovision -storetype pkcs12 -keystore $IPHONE_DEV/my_cert.p12 -storepass password $appname.ipa $appname-appV.xml $appname.swf Default.png icon29.png icon57.png icon512.png endTime=`eval date +%s` let PTIME=($endTime - $startTime) echo "COMPILE: $PTIME secs" #echo "Opening IPA in iTunes" open $appname.ipa osascript -e 'tell application "iTunes" to update "mydevice"'
以上是关于用于打包iOS的AIR应用程序的Shell脚本的主要内容,如果未能解决你的问题,请参考以下文章