JAL-3393 Added version number to DMG Volume name. New jalview_dmg_DS_Store and docume...
[jalview.git] / doc / README-DMG_creation.md
index 13f4bf9..dff74bb 100644 (file)
@@ -42,6 +42,13 @@ See file `README-DMG_background_image_creation.md` on how to create the backgrou
 See https://www.ej-technologies.com/resources/install4j/help/doc/concepts/dmgStyling.html which describes how to add the background image to your DMG file
 using macOS Finder.
 
+### update 2022-03-10
+Adding the background image in this way sets a full path from `/` in the `.DS_Store`, meaning the DMG Volume name cannot change (or if it does then the background image isn't found and so not displayed).
+It should now be set (only needs to be done once) to a relative path, e.g. `.background/jalview_dmg_background.png` using the AppleScript in `utils/install4j/set_relative_dmg_background_image.applescript` with, e.g.
+```
+/usr/bin/osascript ./applescript.applescript Jalview\ Installer\ \(2.11.2.0\)
+```
+
 Worth exploring further:
 * https://github.com/create-dmg/create-dmg
 * and the AppleScript on https://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools