Difference between revisions of "MacOSX: Arrange icons in a dmg"
From Apache OpenOffice Wiki
m (even removing dylibs needs resize) |
m (switched two lines) |
||
Line 12: | Line 12: | ||
<pre> | <pre> | ||
− | |||
# hdiutil resize -size 500m temp.dmg | # hdiutil resize -size 500m temp.dmg | ||
+ | # hdiutil attach temp.dmg | ||
# rm -f /Volumes/OpenOffice/OpenOffice.org\ 2.4.0/Contens/MacOS/*.dylib | # rm -f /Volumes/OpenOffice/OpenOffice.org\ 2.4.0/Contens/MacOS/*.dylib | ||
# chmod +w /Volumes/OpenOffice/.DS_Store | # chmod +w /Volumes/OpenOffice/.DS_Store |
Revision as of 13:05, 4 February 2008
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 resize -size 500m temp.dmg # hdiutil attach 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