3 # perform a dev build and install on local macOS machine
4 INSTALLERVOL="Jalview Installer"
7 APPLICATIONS=$HOME/Applications
9 DMG=build/install4j/11/Jalview-OFFLINE_macos-app_DEVELOPMENT-j11.dmg
11 if [ x$1 != "xnogradle" ]; then
12 gradle installers -PCHANNEL=LOCAL -Pinstall4j_media_types=macosArchive
14 echo "Not running gradle installers"
18 umount "/Volumes/$INSTALLERVOL"
19 if [ -e "$DMG" ]; then
22 echo "No DMG file '$DMG'" 1>&2
25 echo "Mounting '$DMG' at /Volumes"
27 while [ \! -e "/Volumes/$INSTALLERVOL/$APP" ]; do
28 if [ $(( N%1000 )) = 0 ]; then
35 if [ -e "/Volumes/$INSTALLERVOL/$APP" ]; then
36 /bin/rm -r "$APPLICATIONS/$APP"
37 rsync -avh "/Volumes/$INSTALLERVOL/$APP" "$APPLICATIONS/"
38 umount "/Volumes/$INSTALLERVOL"