-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-iphone.xml
46 lines (41 loc) · 1.81 KB
/
build-iphone.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<project name="WagErg iPhone" default="iphone.all">
<!-- LOCAL TOOLCHAIN AND CODE_SIGNING PROPERTIES -->
<property file="local.properties"/>
<!-- COMMON BUILD PROPERTIES -->
<property file="build.properties" />
<!-- platform -->
<property name="iphone.build.dir" value="build/iphone"/>
<property name="iphone.app-descriptor.path" value="src/WagErg-ApplePhone-app.xml"/>
<property name="iphone.swf" value="bin/iOS/WagErgApplePhone.swf"/> <!-- must match content element in descriptor -->
<property name="iphone.assets.dir" value="src/assets/iOS"/>
<property name="iphone.main.source" value="src/WagErgApplePhone.as"/>
<target name="iphone.all"/>
<target name="iphone.compile">
<java jar="${mxmlc.jar}" fork="true" failonerror="true">
<arg value="-debug=false" />
<arg value="-optimize=true" />
<arg value="+flexlib=${flex.sdk.home}/frameworks" />
<arg value="+configname=air" />
<arg value="-file-specs=${iphone.main.source}" />
<arg value="-output=${iphone.swf}" />
<arg value="-l+=${lib.dir}" />
</java>
</target>
<target name="iphone.package.adhoc">
<mkdir dir="${iphone.build.dir}"/>
<java jar="${adt.jar}" fork="true" failonerror="true">
<arg line="-package" />
<arg line="-target ipa-ad-hoc" />
<arg line="-storetype pkcs12" />
<arg line="-keystore '${iphone.keystore.path}'" />
<arg line="-storepass '${iphone.keystore.pass}'" />
<arg line="-provisioning-profile '${ios_provisioning_profile_ad_hoc}'" />
<arg line="'${iphone.build.dir}/${app_name}-AD-HOC.ipa'" />
<arg line="'${iphone.app-descriptor.path}'" />
<!-- Add folders to be bundled in the AIR file here -->
<arg line="${iphone.swf}" />
<arg line="${iphone.assets.dir}/icons" />
<arg line="Default.png" />
</java>
</target>
</project>