MacOSX: Arrange icons in a dmg

From Apache OpenOffice Wiki
Revision as of 12:30, 4 February 2008 by Obr (Talk | contribs)

Jump to: navigation, search


This article is a step by step instruction how to re-arrange the icons in a disk image after e.g. a version bump.

1. Convert the disk image you want to modify to an uncompressed format:

# hdiutil convert -format UDRW -o temp.dmg OOo_2.4.0_080125_MacOSXIntel_install.dmg

2. Mount the disk image, free disk space and make .DS_Store file writeable

# hdiutil attach temp.dmg
# hdiutil resize -size 500m temp.dmg
# rm -f /Volumes/OpenOffice/OpenOffice.org\ 2.4.0/Contens/MacOS/*.dylib
# chmod +w /Volumes/OpenOffice/.DS_Store

3. Re-arrange the icons. If you need to re-set the background image, press Shift-Cmd-G to open the folder /Volumes/OpenOffice/.background

4. Eject the disk image to force Finder to write the DS_Store file

5. Re-mount the disk image and grab the DS_Store file:

# cp /Volumes/OpenOffice/.DS_Store ./DS_Store
Personal tools