Yesterday I was doing some research about dmg format and all day was full of graphic work just to bring a nice looking disk image icon and folder view.
I have always been curious how to make dmg images. Well it’s not so hard, you can use Disk Utility the simpler way or hdiutil the harder way. Anyway it’s simple. But I wanted I nice dmg disk image icon and folder view with background too and it’s not so simple anymore :D
The background image goes in .background directory inside disk image,then the image icon goes in .VolumeIcon.icns file and we have to remember to set a special “Custom icon” bit for image folder with this command: /Developers/Tools/SetFile -a C path_to_volume
Graphic work:
- MacLibre disk image icon (png and icns formats)

- background for disk image folder view

- MacLibre logo in svg format

You can find everything on SVN in /bin/Graphics folder
MacLibre dmg image generator:
I have added a Makefile for dmg image generation (in /src/DmgBuilder folder). Now everything you have to do to build a result MacLibre disk image is to type: make in the above folder. All the graphic stuff( icon, background) of disk image is placed in template image compressed with bzip. Makefile script make use of it and it generates the image just like showed on the above screenshot (with MacLibre.app folder copied from /src/dist directory).
Today it was a blog posting day, I never thought that runing my own blog is so time-consuming :-)
Filed under: Free/Open Source, MacLibre 2 | Leave a Comment



No Responses Yet to “DMG – Doesn’t Mean Groovy, does it ?;-)”