|
624 | 624 | <arg line="${jdk.path.macosx}/Contents/Home/bin/keytool macosx/work/Processing.app/Contents/PlugIns/jdk${jdk.esoteric}.jdk/Contents/Home/jre/bin"/> |
625 | 625 | </exec> |
626 | 626 |
|
| 627 | + <property name="contents.dir" |
| 628 | + location="macosx/work/Processing.app/Contents" /> |
| 629 | + |
627 | 630 | <!-- Replace libjli.dylib symlink with actual file. |
628 | 631 | Deals with code signing issues on OS X 10.9.5+ --> |
629 | | - <property name="jli.path" value="macosx/work/Processing.app/Contents/PlugIns/jdk${jdk.esoteric}.jdk/Contents/MacOS/libjli.dylib" /> |
| 632 | + <property name="jli.path" value="${contents.dir}/PlugIns/jdk${jdk.esoteric}.jdk/Contents/MacOS/libjli.dylib" /> |
630 | 633 | <delete file="${jli.path}" /> |
631 | 634 | <exec executable="cp"> |
632 | 635 | <arg line="${jdk.path.macosx}/Contents/Home/jre/lib/jli/libjli.dylib ${jli.path}"/> |
633 | 636 | </exec> |
634 | 637 |
|
635 | | - <copy todir="macosx/work/Processing.app/Contents/Java"> |
| 638 | + <copy todir="${contents.dir}/Java"> |
636 | 639 | <fileset dir=".." includes="core/library/**" /> <!-- why this? --> |
637 | 640 | <!--<fileset dir="shared" includes="launch4j/**" />--> |
638 | 641 | <fileset dir="shared" includes="lib/**" /> |
639 | 642 | <fileset file="shared/revisions.txt" /> |
640 | 643 | </copy> |
641 | 644 |
|
| 645 | + <!-- Use the Processing executable as the stub for exported apps. |
| 646 | + This works b/c everything app-specific is in Info.plist. --> |
| 647 | + <property name="app.stub" value="${contents.dir}/Java/modes/java/application/mac-app-stub" /> |
| 648 | + <!-- Grab a copy of the stub binary before it is signed. |
| 649 | + (See processing.mode.java.JavaBuild for usage.) |
| 650 | + Prevents signing errors with exported apps. --> |
| 651 | + <copy file="${contents.dir}/MacOS/Processing" tofile="${app.stub}" /> |
| 652 | + <!-- The ant copy command does not preserve permissions. --> |
| 653 | + <chmod file="${app.stub}" perm="ugo+x" /> |
| 654 | + |
642 | 655 | <antcall target="assemble"> |
643 | | - <param name="target.path" |
644 | | - value="macosx/work/Processing.app/Contents/Java" /> |
| 656 | + <param name="target.path" value="${contents.dir}/Java" /> |
645 | 657 | </antcall> |
646 | 658 |
|
647 | 659 | <exec executable="macosx/language_gen.py" /> |
648 | 660 |
|
649 | | - <property name="launch4j.dir" value="macosx/work/Processing.app/Contents/Java/modes/java/application/launch4j" /> |
| 661 | + <property name="launch4j.dir" value="${contents.dir}/Java/modes/java/application/launch4j" /> |
650 | 662 |
|
651 | 663 | <!-- rename the version we need --> |
652 | 664 | <move file="${launch4j.dir}/bin/windres-macosx" |
|
717 | 729 | depends="macosx-build" |
718 | 730 | description="Create a downloadable .zip for the Mac OS X version"> |
719 | 731 |
|
720 | | - <!-- The ant copy command does not preserve permissions. --> |
721 | | - <chmod file="macosx/work/Processing.app/Contents/MacOS/JavaApplicationStub" perm="ugo+x" /> |
722 | | - |
723 | | - <!-- Now handled by the app bundler --> |
724 | | - <!-- |
725 | | - <replace file="macosx/work/Processing.app/Contents/Info.plist" |
726 | | - token="VERSION" value="${version}" /> |
727 | | - <replace file="macosx/work/Processing.app/Contents/Info.plist" |
728 | | - token="REVISION" value="${revision}" /> |
729 | | - --> |
730 | | - |
731 | 732 | <antcall target="macosx-dist-sign" /> |
732 | 733 |
|
733 | 734 | <exec executable="ditto" dir="macosx/work"> |
|
0 commit comments