|
217 | 217 | <exec executable="macosx/work/Arduino.app/Contents/MacOS/JavaApplicationStub" spawn="true"/> |
218 | 218 | </target> |
219 | 219 |
|
220 | | - <target name="macosx-dist" if="macosx" depends="macosx-build" description="Create a .dmg of the Mac OS X version"> |
| 220 | + <target name="macosx-dist" if="macosx" depends="macosx-build" description="Create a downloadable .zip for the Mac OS X version"> |
| 221 | + <!-- The ant copy command does not preserve permissions. --> |
| 222 | + <chmod file="macosx/work/Arduino.app/Contents/MacOS/JavaApplicationStub" perm="+x" /> |
| 223 | + <chmod perm="+x"> |
| 224 | + <fileset dir="macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin" includes="**/*" /> |
| 225 | + <fileset dir="macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr/bin" includes="**/*" /> |
| 226 | + <fileset dir="macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr-3/bin" includes="**/*" /> |
| 227 | + <fileset dir="macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr-4/bin" includes="**/*" /> |
| 228 | + <fileset dir="macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/3.4.6/" includes="**/cc1*" /> |
| 229 | + <fileset dir="macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/4.3.2/" includes="**/cc1*" /> |
| 230 | + </chmod> |
| 231 | + |
| 232 | + <replace file="macosx/work/Arduino.app/Contents/Info.plist" |
| 233 | + token="VERSION" value="${version}" /> |
| 234 | + <replace file="macosx/work/Arduino.app/Contents/Info.plist" |
| 235 | + token="REVISION" value="${revision}" /> |
| 236 | + |
| 237 | + <exec executable="ditto" dir="macosx/work"> |
| 238 | + <arg line="-c -k -rsrc . ../arduino-${version}-macosx.zip" /> |
| 239 | + </exec> |
| 240 | + |
| 241 | + <echo> |
| 242 | + ======================================================= |
| 243 | + Arduino for Mac OS X was built. Grab the image from |
| 244 | + |
| 245 | + macosx/arduino-${version}-macosx.zip |
| 246 | + ======================================================= |
| 247 | + </echo> |
| 248 | + </target> |
| 249 | + |
| 250 | + <target name="macosx-dist-old" if="macosx" depends="macosx-build" description="Create a .dmg of the Mac OS X version"> |
221 | 251 | <!-- now build the dmg --> |
222 | 252 | <gunzip src="macosx/template.dmg.gz" dest="macosx/working.dmg" /> |
223 | 253 |
|
|
270 | 300 | ======================================================= |
271 | 301 | </echo> |
272 | 302 | </target> |
273 | | - |
274 | 303 |
|
275 | 304 | <!-- - - - - - - - --> |
276 | 305 | <!-- Linux --> |
|
352 | 381 | <tar compression="gzip" basedir="linux/work" |
353 | 382 | destfile="linux/arduino-${version}.tgz" /> |
354 | 383 | --> |
355 | | - <tar compression="gzip" destfile="linux/arduino-${version}.tgz"> |
| 384 | + <tar compression="gzip" destfile="linux/arduino-${version}-linux.tgz"> |
356 | 385 | <tarfileset dir="linux/work" |
357 | 386 | prefix="arduino-${version}" |
358 | 387 | excludes="arduino, |
|
368 | 397 | ======================================================= |
369 | 398 | Arduino for Linux was built. Grab the archive from |
370 | 399 |
|
371 | | - build/linux/arduino-${version}.tgz |
| 400 | + build/linux/arduino-${version}-linux.tgz |
372 | 401 | ======================================================= |
373 | 402 | </echo> |
374 | 403 | </target> |
|
477 | 506 | excludes="java/**" /> |
478 | 507 | --> |
479 | 508 |
|
480 | | - <zip destfile="windows/arduino-${version}.zip"> |
| 509 | + <zip destfile="windows/arduino-${version}-windows.zip"> |
481 | 510 | <zipfileset dir="windows/work" |
482 | 511 | prefix="arduino-${version}" /> |
483 | 512 | </zip> |
484 | 513 |
|
485 | | - <zip destfile="windows/arduino-${version}-expert.zip"> |
| 514 | + <zip destfile="windows/arduino-${version}-windows-expert.zip"> |
486 | 515 | <zipfileset dir="windows/work" |
487 | 516 | prefix="arduino-${version}" |
488 | 517 | excludes="java/**" /> |
|
492 | 521 | ======================================================= |
493 | 522 | Arduino for Windows was built. Grab the archive from |
494 | 523 |
|
495 | | - windows/arduino-${version}.zip |
496 | | - windows/arduino-${version}-expert.zip |
| 524 | + windows/arduino-${version}-windows.zip |
| 525 | + windows/arduino-${version}-windows-expert.zip |
497 | 526 | ======================================================= |
498 | 527 | </echo> |
499 | 528 | </target> |
|
0 commit comments