forked from thinkingrock-gtd/tr-pc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-osx.xml
161 lines (147 loc) · 8.87 KB
/
build-osx.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?xml version="1.0" encoding="UTF-8"?>
<project name="tr-build" basedir="." default="pkg-osx">
<property name="pkg.dir" location="nbproject/packaging/macosx"/>
<property name="dst.dir" location="dist"/>
<property name="jre.dir" value="${pkg.dir}/jre1.8.0"/>
<property name="app.version" value="3.7.0"/>
<property name="app.title" value="ThinkingRock"/>
<property name="app.name" value="trgtd"/>
<property name="app.id" value="au.com.trgtd.tr"/>
<property name="app.icns" value="${pkg.dir}/${app.name}.icns"/>
<target name="pkg-osx-trial-include-jre">
<antcall target="-pkg-osx">
<param name="include.jre" value="true"/>
<param name="jre.dir" value="${jre.dir}"/>
<param name="conf.dir" value="${pkg.dir}/etc-include-jre"/>
<param name="pkg.prefix" value="tr-${app.version}-trial-jre"/>
</antcall>
</target>
<target name="pkg-osx-trial-exclude-jre">
<antcall target="-pkg-osx">
<param name="include.jre" value="false"/>
<param name="jre.dir" value=""/>
<param name="conf.dir" value="${pkg.dir}/etc-exclude-jre"/>
<param name="pkg.prefix" value="tr-${app.version}-trial"/>
</antcall>
</target>
<target name="pkg-osx-include-jre">
<antcall target="-pkg-osx">
<param name="include.jre" value="true"/>
<param name="jre.dir" value="${jre.dir}"/>
<param name="conf.dir" value="${pkg.dir}/etc-include-jre"/>
<param name="pkg.prefix" value="tr-${app.version}-jre"/>
</antcall>
</target>
<target name="pkg-osx-exclude-jre">
<antcall target="-pkg-osx">
<param name="include.jre" value="false"/>
<param name="jre.dir" value=""/>
<param name="conf.dir" value="${pkg.dir}/etc-exclude-jre"/>
<param name="pkg.prefix" value="tr-${app.version}"/>
</antcall>
</target>
<target name="-pkg-osx">
<!-- clean -->
<delete dir="${dst.dir}"/>
<ant antfile="./build.xml" target="clean" inheritAll="false" >
<property name="dist.dir" value="${dst.dir}"/>
</ant>
<mkdir dir="${dst.dir}"/>
<!-- build enUK OSX app -->
<ant antfile="./build.xml" target="-bundle-osx" inheritAll="false" >
<property name="include.jre" value="${include.jre}"/>
<property name="jre.dir" value="${jre.dir}"/>
<property name="app.icns" value="${app.icns}"/>
<property name="app.version" value="${app.version}"/>
<property name="app.conf" value="${conf.dir}/${app.name}.conf"/>
<property name="app.dir" value="${dst.dir}/${app.name}.app"/>
</ant>
<!-- create enUK OSX package -->
<ant antfile="./build.xml" target="-package-osx" inheritAll="false" >
<property name="dst.dir" value="${dst.dir}"/>
<property name="app.title" value="${app.title}"/>
<property name="app.id" value="${app.id}"/>
<property name="app.version" value="${app.version}"/>
<property name="app.dir" value="${dst.dir}/${app.name}.app"/>
<property name="pkg.dir" value="${pkg.dir}"/>
<property name="pkg.name" value="${pkg.prefix}-uk"/>
</ant>
<!-- build enUS OSX app -->
<ant antfile="./build.xml" target="-bundle-osx" inheritAll="false" >
<property name="include.jre" value="${include.jre}"/>
<property name="jre.dir" value="${jre.dir}"/>
<property name="app.icns" value="${app.icns}"/>
<property name="app.version" value="${app.version}"/>
<property name="app.conf" value="${conf.dir}/${app.name}-enUS.conf"/>
<property name="app.dir" value="${dst.dir}/${app.name}-enUS.app"/>
</ant>
<!-- create enUS OSX package -->
<ant antfile="./build.xml" target="-package-osx" inheritAll="false" >
<property name="dst.dir" value="${dst.dir}"/>
<property name="app.title" value="${app.title}"/>
<property name="app.id" value="${app.id}"/>
<property name="app.version" value="${app.version}"/>
<property name="app.dir" value="${dst.dir}/${app.name}-enUS.app"/>
<property name="pkg.dir" value="${pkg.dir}"/>
<property name="pkg.name" value="${pkg.prefix}-us"/>
</ant>
<!-- build deDE OSX app -->
<ant antfile="./build.xml" target="-bundle-osx" inheritAll="false" >
<property name="include.jre" value="${include.jre}"/>
<property name="jre.dir" value="${jre.dir}"/>
<property name="app.icns" value="${app.icns}"/>
<property name="app.version" value="${app.version}"/>
<property name="app.conf" value="${conf.dir}/${app.name}-deDE.conf"/>
<property name="app.dir" value="${dst.dir}/${app.name}-deDE.app"/>
</ant>
<!-- create deDE OSX package -->
<ant antfile="./build.xml" target="-package-osx" inheritAll="false" >
<property name="dst.dir" value="${dst.dir}"/>
<property name="app.title" value="${app.title}"/>
<property name="app.id" value="${app.id}"/>
<property name="app.version" value="${app.version}"/>
<property name="app.dir" value="${dst.dir}/${app.name}-deDE.app"/>
<property name="pkg.dir" value="${pkg.dir}"/>
<property name="pkg.name" value="${pkg.prefix}-de"/>
</ant>
<!-- build frFR OSX app -->
<ant antfile="./build.xml" target="-bundle-osx" inheritAll="false" >
<property name="include.jre" value="${include.jre}"/>
<property name="jre.dir" value="${jre.dir}"/>
<property name="app.icns" value="${app.icns}"/>
<property name="app.version" value="${app.version}"/>
<property name="app.conf" value="${conf.dir}/${app.name}-frFR.conf"/>
<property name="app.dir" value="${dst.dir}/${app.name}-frFR.app"/>
</ant>
<!-- create frFR OSX package -->
<ant antfile="./build.xml" target="-package-osx" inheritAll="false" >
<property name="dst.dir" value="${dst.dir}"/>
<property name="app.title" value="${app.title}"/>
<property name="app.id" value="${app.id}"/>
<property name="app.version" value="${app.version}"/>
<property name="app.dir" value="${dst.dir}/${app.name}-frFR.app"/>
<property name="pkg.dir" value="${pkg.dir}"/>
<property name="pkg.name" value="${pkg.prefix}-fr"/>
</ant>
<!-- build esES OSX app -->
<ant antfile="./build.xml" target="-bundle-osx" inheritAll="false" >
<property name="include.jre" value="${include.jre}"/>
<property name="jre.dir" value="${jre.dir}"/>
<property name="app.icns" value="${app.icns}"/>
<property name="app.version" value="${app.version}"/>
<property name="app.conf" value="${conf.dir}/${app.name}-esES.conf"/>
<property name="app.dir" value="${dst.dir}/${app.name}-esES.app"/>
</ant>
<!-- create esES OSX package -->
<ant antfile="./build.xml" target="-package-osx" inheritAll="false" >
<property name="dst.dir" value="${dst.dir}"/>
<property name="app.title" value="${app.title}"/>
<property name="app.id" value="${app.id}"/>
<property name="app.version" value="${app.version}"/>
<property name="app.dir" value="${dst.dir}/${app.name}-esES.app"/>
<property name="pkg.dir" value="${pkg.dir}"/>
<property name="pkg.name" value="${pkg.prefix}-es"/>
</ant>
<echo>Created OSX packages for TR in ${dst.dir}.</echo>
</target>
</project>