INSTALLERVOL="Jalview Installer"
APP=Jalview.app
-APPLICATIONS=/Applications
+APPLICATIONS=$HOME/Applications
CHANNEL=NOCHANNEL
DMG=build/install4j/11/Jalview-OFFLINE_macos-app_DEVELOPMENT-j11.dmg
-gradle installers -Pgetdown_channel_name=NOCHANNEL -Pinstall4jMediaTypes=macosArchive
+if [ x$1 != "xnogradle" ]; then
+ gradle installers -PCHANNEL=LOCAL -Pinstall4j_media_types=macosArchive
+else
+ echo "Not running gradle installers"
+fi
if [ $? = 0 ]; then
umount "/Volumes/$INSTALLERVOL"
exit 1
fi
echo "Mounting '$DMG' at /Volumes"
+ N=0
while [ \! -e "/Volumes/$INSTALLERVOL/$APP" ]; do
- echo -n "."
+ if [ $(( N%1000 )) = 0 ]; then
+ echo -n "."
+ fi
+ N=$(( N+1 ))
done
echo ""
fi