1 # Information for making the DMG
3 ## How to make the DS_Store file needed for the DMG prettification
5 > ALSO SEE https://www.ej-technologies.com/resources/install4j/help/doc/concepts/dmgStyling.html
7 First create a dmg with no DS_Store (or an existing one if you just want to edit one)
10 cp ../../build/install4j/11/Jalview-OFFLINE_macos-app_DEVELOPMENT-j11.dmg ./temp.dmg
11 hdiutil convert temp.dmg -format UDRW -o temp_rw.dmg
14 If you are creating a new dmg, or want to add more files than remaining space, then you will need to add some capacity to the dmg. If you're just doing small edits then you might get away without the following block of commands used to resize the dmg.
17 CURSIZE=`hdiutil resize temp_rw.dmg | perl -n -e 'm/^\s*\d+\s+(\d+)\s+\d+$/ && print "$1\n";'`
18 NEWSIZE=$(( CURSIZE + 20000))
19 hdiutil resize -sectors $NEWSIZE temp_rw.dmg
21 Continue by opening the dmg in Finder. The `/Volumes/...` folder will depend on the dmg you're editing.
24 open /Volumes/Jalview\ Installer
27 Then manually position/resize icons, extend size of Finder window, etc so that the Finder window looks how you want it.
31 cp /Volumes/Jalview\ Installer/.DS_Store ./DS_Store_N
33 umount /Volumes/Jalview\ Installer
38 See file `DMG_background_image_creation_README.md` on how to create the background image.