JAL-3393 Don't need PDF file using Illustrator. Replaced with SVG using Inkscape
[jalview.git] / utils / install4j / DMG_creation_README.md
1 # Information for making the DMG
2
3 ## How to make the DS_Store file needed for the DMG prettification
4
5 > ALSO SEE https://www.ej-technologies.com/resources/install4j/help/doc/concepts/dmgStyling.html
6
7 ```
8 cp ../../build/install4j/11/Jalview-OFFLINE_macos-app_DEVELOPMENT-j11.dmg ./temp.dmg
9
10 hdiutil convert temp.dmg -format UDRW -o temp_rw.dmg
11
12 CURSIZE=`hdiutil resize temp_rw.dmg | perl -n -e 'm/^\s*\d+\s+(\d+)\s+\d+$/ && print "$1\n";'`
13
14 NEWSIZE=$(( CURSIZE + 20000))
15
16 hdiutil resize -sectors $NEWSIZE temp_rw.dmg
17
18 open temp_rw.dmg
19
20 open /Volumes/Jalview\ Installer
21 ```
22
23 Then manually position/resize icons, extend size of Finder window, etc
24
25 ```
26 cp /Volumes/Jalview\ Installer/.DS_Store ./DS_Store_N
27
28 umount /Volumes/Jalview\ Installer
29 ```
30
31 ## Background image
32
33 The vector version of this is made in Adobe Illustrator and saved as the pdf jalview_dmg_background_layers.pdf
34
35 This is then exported as 300dpi PNG to jalview_dmg_background_large.png
36
37 This is then converted to the right size, with DPI information removed with ImageMagick
38
39 ```
40 convert -geometry 500x461 utils/install4j/jalview_dmg_background_large.png  -strip  utils/install4j/jalview_dmg_background.png
41 ```