3 # perform a dev build and install on local macOS machine
4 INSTALLERVOL="Jalview Installer"
7 APPLICATIONS=/Applications
9 DMG=build/install4j/1.8/Jalview-OFFLINE_macos-app_DEVELOPMENT-j8.dmg
11 if [ $1 != "nogradle" ]; then
12 gradle installers -Pgetdown_channel_name=NOCHANNEL -Pinstall4jMediaTypes=macosArchive -Pgetdown_local=true -Pdev=true
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"