Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Mac .dmg file from Java

Tags:

java

dmg

iso9660

I would like to create a DMG file from Java.

The reason why it needs to be Java is twofold: It must be part of our build farm (which currently runs on a non Mac OS X platform) and our build uses Maven (which pretty much means Java).

As far as I can a tell inside a DMG file can be an ISO9660 file system. I can create such beast using this but then I still need the part where the whole thing is wrapped in the DMG format. Something like iso2dmg tool except I need it for Java.

When answering: Forget about the Maven part. If you have a Java solution then I can figure out the Maven stuff myself. (e.g. creating my own little Maven plugin if I need to).

like image 605
peterh Avatar asked Oct 21 '25 13:10

peterh


1 Answers

You can use the javapackager tool.

A simple, well explained, step by step tutorial on how to create a DMG from java is here: http://centerkey.com/mac/java/

like image 95
Marco Avatar answered Oct 23 '25 03:10

Marco



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!