-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-iOS.xml
98 lines (85 loc) · 3.74 KB
/
build-iOS.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<project name="WAG ERG iOS" basedir="." default="Package for iOS - AD HOC" >
<description>
Buildfile for iOS off template by Vaclav Vancura (http://vancura.org ~ Copyright 2011)
</description>
<!-- import project properties -->
<property file="local.properties" />
<property file="build.properties" />
<tstamp>
<format property="timestamp" pattern="yyyy-MM-dd_HH-mm-ss" />
</tstamp>
<!-- FLEX SDK configuration -->
<property name="mxmlc_path" value="${flex.sdk.home}/lib/mxmlc.jar" />
<property name="adt_path" value="${flex.sdk.home}/lib/adt.jar" />
<!-- Application configuration -->
<property name="certificates_dir" value="config" />
<property name="libs_dir" value="libs" />
<property name="main_source" value="${project.src}/WagErgApplePhone.as" />
<property name="assets_dir" value="${project.src}/assets/iOS" />
<property name="ios_ipa_filename" value="${project.bin}/${project.name}.ipa" />
<property name="ios.iphone.descriptor" value="${project.src}/WagErg-ApplePhone-app.xml" />
<property name="debug_dir" value="${project.bin}/iOS" />
<!-- Compile SWF to build directory for desktop packaging -->
<target name="3. Compile">
<java jar="${mxmlc_path}" 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=${main_source}" />
<arg value="-output=${project.swf}" />
<arg value="-l+=${libs_dir}" />
</java>
</target>
<target name="Package for iOS - TEST" depends="3. Compile">
<java jar="${adt_path}" fork="true" failonerror="true">
<arg line="-package" />
<arg line="-target ipa-test" />
<arg line="-storetype pkcs12" />
<arg line="-keystore '${ios.certificate.filename}'" />
<arg line="-storepass '${ios.certificate.password}'" />
<arg line="-provisioning-profile '${ios.provisioning.profile.test}'" />
<arg line="'${debug_dir}/${project.name}-TEST.ipa'" />
<arg line="'${ios.iphone.descriptor}'" />
<!-- Add folders to be bundled in the AIR file here -->
<!--<arg line="${project.swf}" />-->
<arg line="${project.swf}" />
<arg line="${assets_dir}/icons" />
<arg line="Default.png" />
</java>
</target>
<target name="Package for iOS - AD HOC" depends="3. Compile">
<java jar="${adt_path}" fork="true" failonerror="true">
<arg line="-package" />
<arg line="-target ipa-ad-hoc" />
<arg line="-storetype pkcs12" />
<arg line="-keystore '${ios.certificate.distribution}'" />
<arg line="-storepass '${ios.certificate.distribution.password}'" />
<arg line="-provisioning-profile '${ios.provisioning.profile.ad.hoc}'" />
<arg line="'${debug_dir}/${project.name}-AD-HOC.ipa'" />
<arg line="'${ios.iphone.descriptor}'" />
<!-- Add folders to be bundled in the AIR file here -->
<!--<arg line="${project.swf}" />-->
<arg line="${project.swf}" />
<arg line="${assets_dir}/icons" />
<arg line="Default.png" />
</java>
</target>
<target name="Package for iOS - APP STORE" depends="3. Compile">
<java jar="${adt_path}" fork="true" failonerror="true">
<arg line="-package" />
<arg line="-target ipa-app-store" />
<arg line="-storetype pkcs12" />
<arg line="-keystore '${ios_certificate_distribution}'" />
<arg line="-storepass '${ios_certificate_distribution_password}'" />
<arg line="-provisioning-profile '${ios_provisioning_profile_app_store}'" />
<arg line="'${debug_dir}/${project.name}-APP-STORE.ipa'" />
<arg line="'${ios.iphone.descriptor}'" />
<!-- Add folders to be bundled in the AIR file here -->
<!--<arg line="${project.swf}" />-->
<arg line="${project.swf}" />
<arg line="${assets_dir}/icons" />
<arg line="Default.png" />
</java>
</target>
</project>