3 # perform a dev build and install on local macOS machine
4 INSTALLERVOL="Jalview Non-Release Installer"
5 APP="Jalview Local.app"
7 APPLICATIONS=/Applications
9 DMG=build/install4j/11/Jalview_Local-TEST-macos-java_11.dmg
12 if [ x$1 != "xnogradle" ]; then
13 gradle installers -PCHANNEL=LOCAL -Pinstall4j_media_types=macosArchive
15 echo "Not running gradle installers"
19 umount "/Volumes/$INSTALLERVOL"
20 if [ -e "$DMG" ]; then
23 echo "No DMG file '$DMG'" 1>&2
26 echo "Mounting '$DMG' at /Volumes"
28 while [ \! -e "/Volumes/$INSTALLERVOL/$APP" ]; do
29 if [ $(( N%1000 )) = 0 ]; then
36 if [ -e "/Volumes/$INSTALLERVOL/$APP" ]; then
37 echo "Removing '$APPLICATIONS/$APP'"
38 /bin/rm -r "$APPLICATIONS/$APP"
39 echo "Syncing '/Volumes/$INSTALLERVOL/$APP' to '$APPLICATIONS/'"
40 rsync -avh "/Volumes/$INSTALLERVOL/$APP" "$APPLICATIONS/"
41 echo "Unmounting '/Volumes/$INSTALLERVOL'"
42 umount "/Volumes/$INSTALLERVOL"