Currently, this is our Ant task to build the dmg.
(I translated the comments)
<!-- ================================================= -->
<!-- Create Mac installer -->
<!-- Only compiles on Linux and Mac OS X -->
<!-- ================================================= -->
<target name="create-mac-installer" description="Create Mac OS X
installer (run 'ant build' first, it is not dependend)" >
<fail description="Currently only Linux and Mac supported">
<condition>
<not>
<or>
<os name="Mac OS X"/>
<os name="Linux"/>
</or>
</not>
</condition>
</fail>
<!-- Create directories for temp and final output -->
<delete dir="${dir.tmp}/dmg" failonerror="false" />
<mkdir dir="${dir.tmp}/dmg/Domeo.app/Contents/Resources/Java/bin/libs"/>
How to create .DS_Store once at a Mac:
create diskimage and mount it at /Volumes/Domeo.
create .DS_Store file and customize settings.
copy newly created .DS_Store to ${dir.installer.dmg}/DS
-->
<copy tofile="${dir.tmp}/dmg/.DS_Store" overwrite="true"
file="${dir.installer.dmg}/DS" />
<!-- Create Applications Symbolic link -->
<!-- WARNING, do not remove this symbolic link by Java(ant) -->
<exec executable="ln" os="Linux, 'Mac OS X'">
<arg line="-s /Applications ${dir.tmp}/dmg/Applications"/>
</exec>
<!-- IMPORTANT! -->
<!-- Remove symbolic link before deleting tmp dir -->
<exec executable="rm" os="Linux, 'Mac OS X'">
<arg line="-R ${dir.tmp}/dmg/Applications"/>
</exec>
<!-- Remove temp dir -->
<delete dir="${dir.tmp}/dmg"/>
</target>
Rob Juurlink
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden