corda/tools/demobench/package/macosx/DemoBench-post-image.sh

12 lines
300 B
Bash
Raw Normal View History

if [ -z "$JAVA_HOME" ]; then
2017-02-21 15:35:50 +00:00
echo "**** Please set JAVA_HOME correctly."
exit 1
fi
2017-02-21 15:35:50 +00:00
# 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