Skip to content

Instantly share code, notes, and snippets.

@illuzor
Created August 17, 2015 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save illuzor/55a4aa83fecfdb2b9d94 to your computer and use it in GitHub Desktop.
Save illuzor/55a4aa83fecfdb2b9d94 to your computer and use it in GitHub Desktop.
<target name="-compile.for.ios" description="Compiling swf for ios">
<java jar="${asc2.compiler}" failonerror="true" fork="true">
<arg value="-load-config+=${air.config}"/>
<arg value="-load-config+=${compile.config}"/>
<arg value="-debug=${debug.build}"/>
<arg value="+configname=airmobile"/>
<arg value="-swf-version=29"/>
<arg value="-define=CONFIG::flashplayer,false"/>
<arg value="-define=CONFIG::android,false"/>
<arg value="-define=CONFIG::ios,true"/>
</java>
<move file="src/com/illuzor/antbuilddemo/Main.swf" tofile="bin/AntBuildDemo.swf"/>
</target>
<target name="-make.ios.ipa" description="Making ipa for ios">
<echo message="Starting build ios ipa"/>
<java jar="${adt}" failonerror="true" fork="true">
<arg value="-package"/>
<arg value="-target"/>
<arg value="${ios.build.type}"/>
<arg value="-storetype"/>
<arg value="pkcs12"/>
<arg value="-keystore"/>
<arg value="${ios.cert}"/>
<arg value="-storepass"/>
<arg value="${ios.cert.pass}"/>
<arg value="-provisioning-profile"/>
<arg value="${ios.provision}"/>
<arg value="${release.folder}/ios_fasttest.apk"/>
<arg value="application.xml"/>
<arg value="-C"/>
<arg value="bin"/>
<arg value="."/>
<arg value="-C"/>
<arg value="icons/ios"/>
<arg value="."/>
</java>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment