|
40 | 40 | <os family="unix" /> |
41 | 41 | </condition> |
42 | 42 |
|
| 43 | + <property name="libs.processing" value="4.3.1" /> |
| 44 | + <property name="libs.gluegen-rt" value="2.5.0" /> |
| 45 | + <property name="libs.jogl-all" value="2.5.0" /> |
| 46 | + <property name="libs.jackson" value="2.18.2" /> |
| 47 | + |
43 | 48 |
|
44 | 49 | <property name="project.jar.name" value="${project.name}" /> |
45 | 50 | <property name="project.src" location="src" /> |
|
88 | 93 | <mkdir dir="${project.bin}" /> |
89 | 94 | <mkdir dir="${project.libs}" /> |
90 | 95 | <mkdir dir="${project.libs}/windows-amd64" /> |
91 | | - <mkdir dir="${project.libs}/macos-x86_64" /> |
92 | | - <mkdir dir="${project.libs}/macos-aarch64" /> |
| 96 | + <mkdir dir="${project.libs}/macosx-universal" /> |
93 | 97 | <mkdir dir="${project.libs}/linux-amd64" /> |
94 | | - <mkdir dir="${project.libs}/linux-arm" /> |
| 98 | + <mkdir dir="${project.libs}/linux-armv6hf" /> |
95 | 99 | <mkdir dir="${project.libs}/linux-aarch64" /> |
96 | 100 | </target> |
97 | 101 |
|
|
102 | 106 | <echo message="download dependencies ..." /> |
103 | 107 |
|
104 | 108 | <property name="jogl.url" |
105 | | - value="https://download.processing.org/jogl/v2.4.0-rc-20210111y" /> |
| 109 | + value="https://jogamp.org/deployment/maven/org/jogamp" /> |
| 110 | + <property name="gluegen-rt.url" value="${jogl.url}/gluegen/gluegen-rt/${libs.gluegen-rt}" /> |
| 111 | + <property name="jogl-all.url" value="${jogl.url}/jogl/jogl-all/${libs.jogl-all}" /> |
106 | 112 |
|
107 | 113 | <get dest="${project.libs}" skipexisting="true"> |
108 | 114 | <url |
109 | | - url="https://github.com/micycle1/processing-core-4/releases/download/4.2.1/core-4.2.1.jar" /> |
110 | | - <url url="${jogl.url}/gluegen-rt.jar" /> |
111 | | - <url url="${jogl.url}/jogl-all.jar" /> |
| 115 | + url="https://repo1.maven.org/maven2/org/processing/core/${libs.processing}/core-${libs.processing}.jar" /> |
| 116 | + <url url="${gluegen-rt.url}/gluegen-rt-${libs.gluegen-rt}.jar" /> |
| 117 | + <url url="${jogl-all.url}/jogl-all-${libs.jogl-all}.jar" /> |
112 | 118 | <url |
113 | 119 | url="https://github.com/processing/processing-sound/releases/download/v2.4.0/sound.zip" /> |
114 | | - <url url="https://github.com/java-native/jssc/releases/download/v2.9.4/jssc-2.9.4.jar" /> |
115 | | - <url url="https://repo1.maven.org/maven2/org/processing/serial/3.3.7/serial-3.3.7.jar" /> |
116 | 120 |
|
117 | 121 | <!-- Jackson for JSON and XML loading --> |
118 | | - <url url="https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.15.2/jackson-core-2.15.2.jar" /> |
119 | | - <url url="https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.15.2/jackson-annotations-2.15.2.jar" /> |
120 | | - <url url="https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.15.2/jackson-databind-2.15.2.jar" /> |
121 | | - <url url="https://repo1.maven.org/maven2/com/fasterxml/jackson/dataformat/jackson-dataformat-xml/2.15.2/jackson-dataformat-xml-2.15.2.jar" /> |
| 122 | + <url url="https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/${libs.jackson}/jackson-core-${libs.jackson}.jar" /> |
| 123 | + <url url="https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/${libs.jackson}/jackson-annotations-${libs.jackson}.jar" /> |
| 124 | + <url url="https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/${libs.jackson}/jackson-databind-${libs.jackson}.jar" /> |
| 125 | + <url url="https://repo1.maven.org/maven2/com/fasterxml/jackson/dataformat/jackson-dataformat-xml/${libs.jackson}/jackson-dataformat-xml-${libs.jackson}.jar" /> |
122 | 126 | <url url="https://repo1.maven.org/maven2/com/fasterxml/woodstox/woodstox-core/6.5.1/woodstox-core-6.5.1.jar" /> |
123 | 127 | <url url="https://repo1.maven.org/maven2/org/codehaus/woodstox/stax2-api/4.2.1/stax2-api-4.2.1.jar" /> |
124 | 128 |
|
|
129 | 133 | </get> |
130 | 134 |
|
131 | 135 | <get dest="${project.libs}/linux-amd64" skipexisting="true"> |
132 | | - <url url="${jogl.url}/gluegen-rt-natives-linux-amd64.jar" /> |
133 | | - <url url="${jogl.url}/jogl-all-natives-linux-amd64.jar" /> |
| 136 | + <url url="${gluegen-rt.url}/gluegen-rt-${libs.gluegen-rt}-natives-linux-amd64.jar" /> |
| 137 | + <url url="${jogl-all.url}/jogl-all-${libs.jogl-all}-natives-linux-amd64.jar" /> |
134 | 138 | </get> |
135 | 139 |
|
136 | | - <get dest="${project.libs}/linux-arm" skipexisting="true"> |
137 | | - <url |
138 | | - url="${jogl.url}/gluegen-rt-natives-linux-arm.jar" /> |
139 | | - <url |
140 | | - url="${jogl.url}/jogl-all-natives-linux-arm.jar" /> |
| 140 | + <get dest="${project.libs}/linux-armv6hf" skipexisting="true"> |
| 141 | + <url url="${gluegen-rt.url}/gluegen-rt-${libs.gluegen-rt}-natives-linux-armv6hf.jar" /> |
| 142 | + <url url="${jogl-all.url}/jogl-all-${libs.jogl-all}-natives-linux-armv6hf.jar" /> |
141 | 143 | </get> |
142 | 144 |
|
143 | 145 | <get dest="${project.libs}/linux-aarch64" skipexisting="true"> |
144 | | - <url |
145 | | - url="${jogl.url}/gluegen-rt-natives-linux-aarch64.jar" /> |
146 | | - <url |
147 | | - url="${jogl.url}/jogl-all-natives-linux-aarch64.jar" /> |
| 146 | + <url url="${gluegen-rt.url}/gluegen-rt-${libs.gluegen-rt}-natives-linux-aarch64.jar" /> |
| 147 | + <url url="${jogl-all.url}/jogl-all-${libs.jogl-all}-natives-linux-aarch64.jar" /> |
148 | 148 | </get> |
149 | 149 |
|
150 | 150 | <get dest="${project.libs}/windows-amd64" skipexisting="true"> |
151 | | - <url |
152 | | - url="${jogl.url}/gluegen-rt-natives-windows-amd64.jar" /> |
153 | | - <url |
154 | | - url="${jogl.url}/jogl-all-natives-windows-amd64.jar" /> |
| 151 | + <url url="${gluegen-rt.url}/gluegen-rt-${libs.gluegen-rt}-natives-windows-amd64.jar" /> |
| 152 | + <url url="${jogl-all.url}/jogl-all-${libs.jogl-all}-natives-windows-amd64.jar" /> |
155 | 153 | </get> |
156 | 154 |
|
157 | | - <get dest="${project.libs}/macos-x86_64" skipexisting="true"> |
158 | | - <url |
159 | | - url="${jogl.url}/gluegen-rt-natives-macos-x86_64.jar" /> |
160 | | - <url |
161 | | - url="${jogl.url}/jogl-all-natives-macos-x86_64.jar" /> |
162 | | - </get> |
163 | | - |
164 | | - <get dest="${project.libs}/macos-aarch64" skipexisting="true"> |
165 | | - <url |
166 | | - url="${jogl.url}/gluegen-rt-natives-macos-aarch64.jar" /> |
167 | | - <url |
168 | | - url="${jogl.url}/jogl-all-natives-macos-aarch64.jar" /> |
| 155 | + <get dest="${project.libs}/macosx-universal" skipexisting="true"> |
| 156 | + <url url="${gluegen-rt.url}/gluegen-rt-${libs.gluegen-rt}-natives-macosx-universal.jar" /> |
| 157 | + <url url="${jogl-all.url}/jogl-all-${libs.jogl-all}-natives-macosx-universal.jar" /> |
169 | 158 | </get> |
170 | 159 |
|
171 | 160 | <if> |
|
256 | 245 | <jar |
257 | 246 | jarfile="${project.tmp}/${project.name}/${folder}/${project.jar.name}-linux-amd64.jar" |
258 | 247 | basedir="${project.bin}"> |
259 | | - <fileset dir="${project.dist}/javadoc" /> |
260 | 248 | <zipgroupfileset dir="${project.libs}" includes="*.jar" /> |
261 | 249 | <zipgroupfileset dir="${project.libs}/linux-amd64" includes="*.jar" /> |
262 | 250 | <manifest> |
|
269 | 257 | </jar> |
270 | 258 |
|
271 | 259 | <jar |
272 | | - jarfile="${project.tmp}/${project.name}/${folder}/${project.jar.name}-linux-arm.jar" |
| 260 | + jarfile="${project.tmp}/${project.name}/${folder}/${project.jar.name}-linux-armv6hf.jar" |
273 | 261 | basedir="${project.bin}"> |
274 | | - <fileset dir="${project.dist}/javadoc" /> |
275 | 262 | <zipgroupfileset dir="${project.libs}" includes="*.jar" /> |
276 | | - <zipgroupfileset dir="${project.libs}/linux-arm" includes="*.jar" /> |
| 263 | + <zipgroupfileset dir="${project.libs}/linux-armv6hf" includes="*.jar" /> |
277 | 264 | <manifest> |
278 | 265 | <attribute name="Class-Path" value="${project.libs}" /> |
279 | 266 | <!-- Information about the program itself --> |
|
286 | 273 | <jar |
287 | 274 | jarfile="${project.tmp}/${project.name}/${folder}/${project.jar.name}-linux-aarch64.jar" |
288 | 275 | basedir="${project.bin}"> |
289 | | - <fileset dir="${project.dist}/javadoc" /> |
290 | 276 | <zipgroupfileset dir="${project.libs}" includes="*.jar" /> |
291 | 277 | <zipgroupfileset dir="${project.libs}/linux-aarch64" includes="*.jar" /> |
292 | 278 | <manifest> |
|
313 | 299 | </jar> |
314 | 300 |
|
315 | 301 | <jar |
316 | | - jarfile="${project.tmp}/${project.name}/${folder}/${project.jar.name}-macos-x86_64.jar" |
| 302 | + jarfile="${project.tmp}/${project.name}/${folder}/${project.jar.name}-macosx-universal.jar" |
317 | 303 | basedir="${project.bin}"> |
318 | 304 | <zipgroupfileset dir="${project.libs}" includes="*.jar" /> |
319 | | - <zipgroupfileset dir="${project.libs}/macos-x86_64" includes="*.jar" /> |
| 305 | + <zipgroupfileset dir="${project.libs}/macosx-universal" includes="*.jar" /> |
320 | 306 | <manifest> |
321 | 307 | <attribute name="Class-Path" value="${project.libs}" /> |
322 | 308 | <!-- Information about the program itself --> |
|
326 | 312 | </manifest> |
327 | 313 | </jar> |
328 | 314 |
|
329 | | - <jar |
330 | | - jarfile="${project.tmp}/${project.name}/${folder}/${project.jar.name}-macos-aarch64.jar" |
331 | | - basedir="${project.bin}"> |
332 | | - <zipgroupfileset dir="${project.libs}" includes="*.jar" /> |
333 | | - <zipgroupfileset dir="${project.libs}/macos-aarch64" includes="*.jar" /> |
334 | | - <manifest> |
335 | | - <attribute name="Class-Path" value="${project.libs}" /> |
336 | | - <!-- Information about the program itself --> |
337 | | - <attribute name="Implementation-Vendor" value="${author.name}" /> |
338 | | - <attribute name="Implementation-Title" value="${project.prettyName}" /> |
339 | | - <attribute name="Implementation-Version" value="${library.version}" /> |
340 | | - </manifest> |
341 | | - </jar> |
342 | 315 | </target> |
343 | 316 |
|
344 | 317 |
|
|
380 | 353 | file="${project.dist.version}/tmp/${project.name}/library/${project.jar.name}-linux-amd64.jar" |
381 | 354 | todir="${project.dist}" /> |
382 | 355 | <move |
383 | | - file="${project.dist.version}/tmp/${project.name}/library/${project.jar.name}-linux-arm.jar" |
| 356 | + file="${project.dist.version}/tmp/${project.name}/library/${project.jar.name}-linux-armv6hf.jar" |
384 | 357 | todir="${project.dist}" /> |
385 | 358 | <move |
386 | 359 | file="${project.dist.version}/tmp/${project.name}/library/${project.jar.name}-linux-aarch64.jar" |
387 | 360 | todir="${project.dist}" /> |
388 | 361 | <move |
389 | | - file="${project.dist.version}/tmp/${project.name}/library/${project.jar.name}-macos-x86_64.jar" |
390 | | - todir="${project.dist}" /> |
391 | | - <move |
392 | | - file="${project.dist.version}/tmp/${project.name}/library/${project.jar.name}-macos-aarch64.jar" |
| 362 | + file="${project.dist.version}/tmp/${project.name}/library/${project.jar.name}-macosx-universal.jar" |
393 | 363 | todir="${project.dist}" /> |
394 | 364 |
|
395 | 365 | <copy file="resources/index.html" todir="${project.dist}" /> |
|
0 commit comments