JAL-3394 Removed libjli.dylib symbolic link from embedded macOS JRE, works in 8 and...
[jalview.git] / utils / install4j / DMG_creation_README.md
index b03657a..eeb10d4 100644 (file)
@@ -1,5 +1,10 @@
-## ALSO SEE https://www.ej-technologies.com/resources/install4j/help/doc/#install4j.concepts.dmgStyling
+# Information for making the DMG
 
+## How to make the DS_Store file needed for the DMG prettification
+
+> ALSO SEE https://www.ej-technologies.com/resources/install4j/help/doc/concepts/dmgStyling.html
+
+```
 cp ../../build/install4j/11/Jalview-OFFLINE_macos-app_DEVELOPMENT-j11.dmg ./temp.dmg
 
 hdiutil convert temp.dmg -format UDRW -o temp_rw.dmg
@@ -10,13 +15,27 @@ NEWSIZE=$(( CURSIZE + 20000))
 
 hdiutil resize -sectors $NEWSIZE temp_rw.dmg
 
-open /Volumes/Jalview\ Installer
+open temp_rw.dmg
 
+open /Volumes/Jalview\ Installer
+```
 
-### Position/resize icons, extend size of Finder window, etc
-
+Then manually position/resize icons, extend size of Finder window, etc
 
+```
 cp /Volumes/Jalview\ Installer/.DS_Store ./DS_Store_N
 
 umount /Volumes/Jalview\ Installer
+```
+
+## Background image
+
+The vector version of this is made in Adobe Illustrator and saved as the pdf jalview_dmg_background_layers.pdf
+
+This is then exported as 300dpi PNG to jalview_dmg_background_large.png
+
+This is then converted to the right size, with DPI information removed with ImageMagick
 
+```
+convert -geometry 500x461 utils/install4j/jalview_dmg_background_large.png  -strip  utils/install4j/jalview_dmg_background.png
+```