CORPRIV-659: Tweak post-image script for DMG.

This commit is contained in:
Chris Rankin 2017-02-20 21:49:06 +00:00
parent 09d3fb423d
commit d3e46d97b9

View File

@ -1,7 +1,10 @@
if [ -z "$JAVA_HOME" ]; then
echo "Please set JAVA_HOME correctly."
else
INSTALL_HOME=../images/DemoBench.app/Contents/PlugIns/Java.runtime/Contents/Home/jre/bin
# Switch to folder containing application.
cd ../images/DemoBench.app
INSTALL_HOME=Contents/PlugIns/Java.runtime/Contents/Home/jre/bin
mkdir -p $INSTALL_HOME
cp $JAVA_HOME/jre/bin/java $INSTALL_HOME
fi