Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add background image/color to DMG using hdiutil or other tool? [duplicate]

Possible Duplicate:
How do I create a nice-looking DMG for Mac OS X using command-line tools?

It seems like using Finder UX or some sort of UI tool (Create drag-drop graphic when installing OS X application from dmg) the only way to customize how a DMG looks when opened up. That doesn't scale too well and isn't automatable enough.

Anyone know of way to achieve the same thing but using tools such as hdiutil on Mac or mkfs.hfsplus on Linux?

like image 749
psychotik Avatar asked May 16 '09 02:05

psychotik


1 Answers

The OS X Finder stores data about the window size, type, position, background image and icon arrangement (per directory) in a hidden file called .DS_Store. If you follow the general idea from the other question, you should then be able to copy the .DS_Store file from the resulting disk image into new images generated by a deployment script.

like image 80
rspeed Avatar answered Oct 18 '22 23:10

rspeed