Changeset 1492 in josm for trunk/build.xml


Ignore:
Timestamp:
2009-03-16T13:35:20+01:00 (10 years ago)
Author:
stoecker
Message:

added MacOS support in build. patch by Thilo Hannemann

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r1141 r1492  
    6666        </target>
    6767
     68        <target name="distmac" depends="dist">
     69                <!-- modify MacOS X Info.plist file to hold the SVN version number -->
     70                <copy file="macosx/JOSM.app/Contents/Info.plist" todir="build"/>
     71                <replace file="build/Info.plist" token="@SVNVersion@" value="${version.entry.commit.revision}"/>
     72                <!-- create ZIP file with MacOS X application bundle -->
     73                <zip destfile="dist/josm-custom-macosx.zip" update="true">
     74                        <zipfileset dir="build" includes="CONTRIBUTION README LICENSE"/>
     75                        <zipfileset dir="macosx" includes="JOSM.app/Contents JOSM.app/Contents/MacOS JOSM.app/Contents/Resources JOSM.app/Contents/Resources/Java JOSM.app/Contents/PkgInfo JOSM.app/Contents/Resources/JOSM.icns"/>
     76                        <zipfileset dir="build" includes="Info.plist" prefix="JOSM.app/Contents"/>
     77                        <zipfileset dir="dist" includes="josm-custom.jar" prefix="JOSM.app/Contents/Resources/Java"/>
     78                        <zipfileset dir="macosx" includes="JOSM.app/Contents/MacOS/JOSM" filemode="755"/>
     79                </zip>
     80        </target>
     81
    6882        <target name="compile" depends="init">
    6983                <javac srcdir="src" classpathref="classpath" destdir="build"
Note: See TracChangeset for help on using the changeset viewer.