|
15 | 15 | <matches string="${os.version}" pattern="^10.[56]." />
|
16 | 16 | </and>
|
17 | 17 | </condition>
|
| 18 | + <condition property="macosx-old"><equals arg1="${platform}" arg2="macosx-old" /></condition> |
| 19 | + <fail if="macosx-old" message="MacOSX older than 10.7 are not supported"/> |
| 20 | + |
18 | 21 | <condition property="platform" value="macosx"><os family="mac" /></condition>
|
19 | 22 | <condition property="platform" value="windows"><os family="windows" /></condition>
|
20 | 23 | <condition property="platform" value="linux32"><os family="unix" arch="i386" /></condition>
|
21 | 24 | <condition property="platform" value="linux64"><os family="unix" arch="amd64" /></condition>
|
22 | 25 |
|
23 |
| - <condition property="macosx"><equals arg1="${platform}" arg2="macosx-old" /></condition> |
24 | 26 | <condition property="macosx"><equals arg1="${platform}" arg2="macosx" /></condition>
|
25 | 27 | <condition property="windows"><equals arg1="${platform}" arg2="windows" /></condition>
|
26 | 28 | <condition property="linux32"><equals arg1="${platform}" arg2="linux32" /></condition>
|
|
29 | 31 | <condition property="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
|
30 | 32 |
|
31 | 33 | <condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="macosx" /></condition>
|
32 |
| - <condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="macosx-old" /></condition> |
33 | 34 | <condition property="staging_folder" value="windows"><equals arg1="${platform}" arg2="windows" /></condition>
|
34 | 35 | <condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux32" /></condition>
|
35 | 36 | <condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
|
36 | 37 |
|
37 | 38 | <condition property="staging_hardware_folder" value="Arduino.app/Contents/Java/hardware"><equals arg1="${platform}" arg2="macosx" /></condition>
|
38 |
| - <condition property="staging_hardware_folder" value="Arduino.app/Contents/Resources/Java/hardware"><equals arg1="${platform}" arg2="macosx-old" /></condition> |
39 | 39 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="windows" /></condition>
|
40 | 40 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux32" /></condition>
|
41 | 41 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux64" /></condition>
|
|
247 | 247 | <!-- - - - - - - - -->
|
248 | 248 | <!-- Mac OS X -->
|
249 | 249 | <!-- - - - - - - - -->
|
250 |
| - |
251 |
| - <target name="macosx-clean" depends="macosx-old-clean" description="Clean Mac OS X build"/> |
252 |
| - |
253 |
| - <target name="macosx-old-clean" depends="subprojects-clean" description="Clean Mac OS X build"> |
| 250 | + <target name="macosx-clean" depends="subprojects-clean" description="Clean Mac OS X build"> |
254 | 251 | <delete dir="macosx/work" />
|
255 | 252 | <delete dir="macosx/working_dir" />
|
256 | 253 | <delete dir="macosx/working.dmg" />
|
|
271 | 268 | <fail message="wrong platform (${os.name})" />
|
272 | 269 | </target>
|
273 | 270 |
|
274 |
| - <target name="macosx-old-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version"> |
275 |
| - <mkdir dir="macosx/work" /> |
276 |
| - <mkdir dir="macosx/work/${staging_hardware_folder}" /> |
277 |
| - |
278 |
| - <!-- assemble the pde --> |
279 |
| - <copy todir="macosx/work/Arduino.app"> |
280 |
| - <fileset dir="macosx/template.app" includes="**"/> |
281 |
| - </copy> |
282 |
| - |
283 |
| - <chmod file="macosx/work/Arduino.app/Contents/MacOS/JavaApplicationStub" perm="755" /> |
284 |
| - |
285 |
| - <copy todir="macosx/work/Arduino.app/Contents/Resources/Java" flatten="true"> |
286 |
| - <fileset refid="runtime.jars"/> |
287 |
| - </copy> |
288 |
| - |
289 |
| - <copy todir="macosx/work/Arduino.app/Contents/Resources/Java"> |
290 |
| - <fileset dir="shared" includes="lib/**" /> |
291 |
| - <fileset file="shared/revisions.txt" /> |
292 |
| - </copy> |
293 |
| - |
294 |
| - <antcall target="macosx-build-common"/> |
295 |
| - |
296 |
| - <replace file="macosx/work/Arduino.app/Contents/Info.plist" |
297 |
| - token="VERSION" value="${version}" /> |
298 |
| - <replace file="macosx/work/Arduino.app/Contents/Info.plist" |
299 |
| - token="REVISION" value="${revision}" /> |
300 |
| - |
301 |
| - </target> |
302 |
| - |
303 | 271 | <target name="macosx-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version">
|
304 | 272 | <fail unless="MACOSX_BUNDLED_JVM" message="MacOSX requires MACOSX_BUNDLED_JVM property set"/>
|
305 | 273 | <mkdir dir="${staging_folder}/work" />
|
|
324 | 292 | shortversion="${version}"
|
325 | 293 | version="${revision}"
|
326 | 294 | signature="Pde1"
|
327 |
| - icon="macosx/template.app/Contents/Resources/processing.icns" |
| 295 | + icon="macosx/processing.icns" |
328 | 296 | mainclassname="processing.app.Base"
|
329 | 297 | copyright="Arduino LLC"
|
330 | 298 | applicationCategory="public.app-category.education"
|
|
365 | 333 | <option value="-splash:$APP_ROOT/Contents/Java/lib/splash.png"/>
|
366 | 334 |
|
367 | 335 | <bundledocument extensions="ino,c,cpp,h"
|
368 |
| - icon="macosx/template.app/Contents/Resources/pde.icns" |
| 336 | + icon="macosx/pde.icns" |
369 | 337 | name="Arduino Source File"
|
370 | 338 | role="Editor" ispackage="false">
|
371 | 339 | </bundledocument>
|
|
424 | 392 | </chmod>
|
425 | 393 | </target>
|
426 | 394 |
|
427 |
| - <target name="macosx-old-run" depends="macosx-old-build" description="Run Mac OS X version"> |
428 |
| - <antcall target="macosx-run-common"/> |
429 |
| - </target> |
430 |
| - |
431 | 395 | <target name="macosx-run" depends="build" description="Run Mac OS X version">
|
432 | 396 | <antcall target="macosx-run-common"/>
|
433 | 397 | </target>
|
434 | 398 |
|
435 |
| - <target name="macosx-old-debug" depends="macosx-old-build" description="Run Mac OS X version"> |
436 |
| - <antcall target="macosx-debug-common"/> |
437 |
| - </target> |
438 |
| - |
439 | 399 | <target name="macosx-debug" depends="build" description="Run Mac OS X version">
|
440 | 400 | <antcall target="macosx-debug-common"/>
|
441 | 401 | </target>
|
|
507 | 467 | <!-- - - - - - - - - - - - - - - - - - - -->
|
508 | 468 | <!-- Build distribution file for MacOSX. -->
|
509 | 469 | <!-- - - - - - - - - - - - - - - - - - - -->
|
510 |
| - <target name="macosx-old-dist" if="macosx" depends="macosx-old-build" description="Create a downloadable .zip for the Mac OS X version"> |
511 |
| - <antcall target="macosx-dist-common"/> |
512 |
| - </target> |
513 |
| - |
514 | 470 | <target name="macosx-dist" if="macosx" depends="build" description="Create a downloadable .zip for the Mac OS X version">
|
515 | 471 | <antcall target="macosx-dist-common"/>
|
516 | 472 | </target>
|
|
529 | 485 | </echo>
|
530 | 486 | </target>
|
531 | 487 |
|
532 |
| - <!--<target name="macosx-dist-old" if="macosx" depends="macosx-build" description="Create a .dmg of the Mac OS X version">--> |
533 |
| - <!--<!– now build the dmg –>--> |
534 |
| - <!--<gunzip src="macosx/template.dmg.gz" dest="macosx/working.dmg" />--> |
535 |
| - |
536 |
| - <!--<mkdir dir="macosx/working_dir" />--> |
537 |
| - <!--<exec executable="hdiutil">--> |
538 |
| - <!--<arg line="attach macosx/working.dmg -noautoopen -mountpoint macosx/working_dir" />--> |
539 |
| - <!--<!–<arg line="attach macosx/working.dmg -noautoopen -quiet -mountpoint macosx/working_dir" />–>--> |
540 |
| - <!--</exec>--> |
541 |
| - |
542 |
| - <!--<copy todir="macosx/working_dir">--> |
543 |
| - <!--<fileset dir="macosx/work" />--> |
544 |
| - <!--</copy>--> |
545 |
| - |
546 |
| - <!--<!– The ant copy command does not preserve permissions. –>--> |
547 |
| - <!--<chmod file="macosx/working_dir/Arduino.app/Contents/MacOS/JavaApplicationStub" perm="+x" />--> |
548 |
| - <!--<chmod perm="+x">--> |
549 |
| - <!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin" includes="**/*" />--> |
550 |
| - <!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr/bin" includes="**/*" />--> |
551 |
| - <!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr-3/bin" includes="**/*" />--> |
552 |
| - <!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr-4/bin" includes="**/*" />--> |
553 |
| - <!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/3.4.6/" includes="**/cc1*" />--> |
554 |
| - <!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/4.3.2/" includes="**/cc1*" />--> |
555 |
| - <!--</chmod>--> |
556 |
| - |
557 |
| - <!--<!– Pause briefly for the OS to catch up with the DMG changes. --> |
558 |
| - <!--This prevents "hdiutil: couldn't eject "disk3" - Resource busy"--> |
559 |
| - <!--errors when ejecting the disk in the next step.--> |
560 |
| - <!--You may need to set this value higher for your system. –>--> |
561 |
| - <!--<sleep seconds="3" />--> |
562 |
| - |
563 |
| - <!--<exec executable="hdiutil">--> |
564 |
| - <!--<!–<arg line="detach macosx/working_dir -quiet -force" />–>--> |
565 |
| - <!--<arg line="detach macosx/working_dir" />--> |
566 |
| - <!--</exec>--> |
567 |
| - |
568 |
| - <!--<delete file="macosx/arduino-*.dmg" />--> |
569 |
| - <!--<exec executable="hdiutil">--> |
570 |
| - <!--<arg line="convert macosx/working.dmg -quiet -format UDZO -imagekey zlib-level=9 -o macosx/arduino-${version}.dmg" />--> |
571 |
| - <!--</exec>--> |
572 |
| - |
573 |
| - <!--<!– Clean up the interim files. –>--> |
574 |
| - <!--<delete file="macosx/working.dmg" />--> |
575 |
| - <!--<delete dir="macosx/working_dir" />--> |
576 |
| - |
577 |
| - <!--<echo>--> |
578 |
| - <!--=======================================================--> |
579 |
| - <!--Arduino for Mac OS X was built. Grab the image from--> |
580 |
| - |
581 |
| - <!--macosx/arduino-${version}.dmg--> |
582 |
| - <!--=======================================================--> |
583 |
| - <!--</echo>--> |
584 |
| - <!--</target>--> |
585 |
| - |
586 |
| - <!--<target name="macosx-dist-old-fix-perms" unless="light_bundle">--> |
587 |
| - <!--<chmod perm="+x">--> |
588 |
| - <!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin" includes="**/*" />--> |
589 |
| - <!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr/bin" includes="**/*" />--> |
590 |
| - <!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr-3/bin" includes="**/*" />--> |
591 |
| - <!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr-4/bin" includes="**/*" />--> |
592 |
| - <!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/3.4.6/" includes="**/cc1*" />--> |
593 |
| - <!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/4.3.2/" includes="**/cc1*" />--> |
594 |
| - <!--</chmod>--> |
595 |
| - <!--</target>--> |
596 |
| - |
597 | 488 | <!-- - - - - - - - -->
|
598 | 489 | <!-- Linux -->
|
599 | 490 | <!-- - - - - - - - -->
|
|
0 commit comments