Create .dmg Images for OS X on Linux
Those are the kinds of gems hidden in bugreports:
If you cant create the image on a mac because of the build process, here is how you can do it under linux:
- Create a image file, the size is fixed. (
dd if=/dev/zero of=/root/eclipse.dmg bs=1M count=130)
- Get the
hfsutils(for redhat or suse:
hfsutils-3.2.6-1.i386.rpmfrom rpmfind.net) and install them.
- Format the image file:
hformat -l Eclipse /root/eclipse.dmg
- Mount the image:
mount -t hfs -o loop /root/eclipse.dmg /mnt/test
- Copy files into the volume
- Unmount the volume:
- Thats it.
via Bug 106350 – Feature Request: distributing eclipse.dmg instead of .tar.gz for the mac platform.
Applying these instructions to your distro is left as an exercise for the reader.Server!/Horror