corda/tools/demobench/package/macosx/DemoBench-post-image.sh
2017-02-21 15:38:22 +00:00

12 lines
300 B
Bash

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