getdownAppDistDir = getdown_app_dir_release
reportRsyncCommand = true
install4jSuffix = ""
- install4jInstallerName = "${jalview_name} Installer"
+ install4jInstallerName = "${jalview_name} Installer (${JALVIEW_VERSION})"
break
case "ARCHIVE":
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
--- /dev/null
+on run (volumeName)
+ tell application "Finder"
+ tell disk (volumeName as string)
+ open
+
+ set dsStore to "\"" & "/Volumes/" & volumeName & "/" & ".DS_STORE\""
+ set opts to the icon view options of container window
+ set background picture of opts to file ".background:jalview_dmg_background.png"
+
+ end tell
+ end tell
+end run
\ No newline at end of file