bisq/package/mac/create_app.sh

48 lines
1.5 KiB
Bash
Raw Normal View History

#!/bin/bash
cd ../../
2015-11-18 17:32:02 +01:00
mkdir -p gui/deploy
set -e
2016-06-17 01:54:38 +02:00
fullVersion="0.4.9"
2016-06-28 20:29:39 +02:00
mvn clean package -DskipTests -Dmaven.javadoc.skip=true
2015-12-30 14:30:24 +01:00
cp gui/target/shaded.jar "gui/deploy/Bitsquare-$fullVersion.jar"
cp gui/target/shaded.jar "/Users/mk/vm_shared_ubuntu/Bitsquare-$fullVersion.jar"
cp gui/target/shaded.jar "/Users/mk/vm_shared_windows/Bitsquare-$fullVersion.jar"
cp gui/target/shaded.jar "/Users/mk/vm_shared_ubuntu14_32bit/Bitsquare-$fullVersion.jar"
cp gui/target/shaded.jar "/Users/mk/vm_shared_windows_32bit/Bitsquare-$fullVersion.jar"
2016-01-18 13:04:15 +01:00
cp seednode/target/SeedNode.jar "gui/deploy/SeedNode.jar"
echo "Using $JAVA_HOME"
$JAVA_HOME/bin/javapackager \
-deploy \
-BjvmOptions=-Xbootclasspath/a:"jdkfix-$fullVersion.jar":"$JAVA_HOME/jre/lib/ext/jfxrt.jar" \
-BappVersion=$fullVersion \
-Bmac.CFBundleIdentifier=io.bitsquare \
-Bmac.CFBundleName=Bitsquare \
-Bicon=package/mac/Bitsquare.icns \
-Bruntime="$JAVA_HOME/jre" \
-native dmg \
-name Bitsquare \
-title Bitsquare \
-vendor Bitsquare \
2015-04-16 11:43:39 +02:00
-outdir gui/deploy \
-srcfiles "gui/deploy/Bitsquare-$fullVersion.jar:jdkfix/target/jdkfix-$fullVersion.jar" \
2015-04-16 11:43:39 +02:00
-appclass io.bitsquare.app.BitsquareAppMain \
2015-10-28 02:11:59 +01:00
-outfile Bitsquare \
-BjvmProperties=-Djava.net.preferIPv4Stack=true
2015-12-30 14:30:24 +01:00
rm "gui/deploy/Bitsquare.html"
rm "gui/deploy/Bitsquare.jnlp"
mv "gui/deploy/bundles/Bitsquare-$fullVersion.dmg" "gui/deploy/Bitsquare-$fullVersion.dmg"
2016-04-27 00:33:22 +02:00
rm -r "gui/deploy/bundles"
2016-04-27 00:33:22 +02:00
mv "gui/deploy/SeedNode.jar" "gui/deploy/SeedNode-$fullVersion.jar"
cd package/mac