You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.3 KiB
24 lines
1.3 KiB
14 years ago
|
<target name="-mac-app" depends="-test-mac-app-enabled" if="is.mac.app.enabled">
|
||
|
<echo>MacOSX Application Creation</echo>
|
||
|
<copy file="Info.plist" tofile="_Info.plist">
|
||
|
<filterchain>
|
||
|
<replacestring from="$${main.class}" to="${main.class}"/>
|
||
|
<replacestring from="$${run.jvmargs}" to="${run.jvmargs}"/>
|
||
|
<replacestring from="$${application.title}" to="${application.title}"/>
|
||
|
</filterchain>
|
||
|
</copy>
|
||
|
<zip destfile="${dist.dir}/${application.title}-MacOSX.zip">
|
||
|
<zipfileset file="osx-stub" filemode="755" fullpath="${application.title}.app/Contents/MacOS/JavaApplicationStub"/>
|
||
|
<zipfileset file="_Info.plist" fullpath="${application.title}.app/Contents/Info.plist"/>
|
||
|
<zipfileset file="osx-icon.icns" fullpath="${application.title}.app/Contents/Resources/GenericApp.icns"/>
|
||
|
<zipfileset file="${dist.jar}" prefix="${application.title}.app/Contents/Resources/Java"/>
|
||
|
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}.app/Contents/Resources/Java/lib"/>
|
||
|
</zip>
|
||
|
<delete file="_Info.plist"/>
|
||
|
</target>
|
||
|
<target name="-test-mac-app-enabled">
|
||
|
<condition property="is.mac.app.enabled">
|
||
|
<istrue value="${mac.app.enabled}"/>
|
||
|
</condition>
|
||
|
</target>
|