Difference between revisions of "MacOSX: Arrange icons in a dmg"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (even removing dylibs needs resize)
m
 
(5 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
This article is a step by step instruction how to re-arrange the icons in a disk image after e.g. a version bump.
 
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:
+
1. Convert the disk image you want to modify to an uncompressed format. To avoid any user specific data, change to the /tmp directory first:
  
 
<pre>
 
<pre>
 +
# cd /tmp
 
# hdiutil convert -format UDRW -o temp.dmg OOo_2.4.0_080125_MacOSXIntel_install.dmg
 
# hdiutil convert -format UDRW -o temp.dmg OOo_2.4.0_080125_MacOSXIntel_install.dmg
 
</pre>
 
</pre>
Line 12: Line 13:
  
 
<pre>
 
<pre>
# hdiutil attach temp.dmg
 
 
# hdiutil resize -size 500m temp.dmg
 
# hdiutil resize -size 500m temp.dmg
# rm -f /Volumes/OpenOffice/OpenOffice.org\ 2.4.0/Contens/MacOS/*.dylib
+
# hdiutil attach temp.dmg
 
# chmod +w /Volumes/OpenOffice/.DS_Store
 
# chmod +w /Volumes/OpenOffice/.DS_Store
 
</pre>
 
</pre>
  
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
+
3. Re-arrange the icons. If you need to re-set the background image, select "Show View Options" from the context menu, chose Background: Picture -> Select, then press Shift-Cmd-G to open the folder /Volumes/OpenOffice/.background and select background.png. If you work on a large monitor, make sure the DMG window position is in the upper left area.
  
4. Eject the disk image to force Finder to write the DS_Store file
+
4. Chose "Eject OpenOffice.org .." from the context menu to force Finder to write the DS_Store file.
  
 
5. Re-mount the disk image and grab the DS_Store file:
 
5. Re-mount the disk image and grab the DS_Store file:

Latest revision as of 09:08, 15 July 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. To avoid any user specific data, change to the /tmp directory first:

# cd /tmp
# 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
# chmod +w /Volumes/OpenOffice/.DS_Store

3. Re-arrange the icons. If you need to re-set the background image, select "Show View Options" from the context menu, chose Background: Picture -> Select, then press Shift-Cmd-G to open the folder /Volumes/OpenOffice/.background and select background.png. If you work on a large monitor, make sure the DMG window position is in the upper left area.

4. Chose "Eject OpenOffice.org .." from the context menu 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