bisq/package/osx/create_app.sh

49 lines
1.4 KiB
Bash
Raw Normal View History

#!/bin/bash
cd ../../
2015-11-18 17:32:02 +01:00
mkdir -p gui/deploy
set -e
2017-07-03 12:18:14 +02:00
version="0.5.2"
mvn clean package verify -DskipTests -Dmaven.javadoc.skip=true
2015-12-30 14:30:24 +01:00
2017-06-27 01:29:51 +02:00
# At windows we don't add the version nr as it would keep multiple versions of jar files in app dir
2017-06-28 00:33:27 +02:00
cp gui/target/shaded.jar "gui/deploy/Bisq-$version.jar"
cp gui/target/shaded.jar "/Users/dev/vm_shared_ubuntu/Bisq-$version.jar"
cp gui/target/shaded.jar "/Users/dev/vm_shared_windows/Bisq.jar"
cp gui/target/shaded.jar "/Users/dev/vm_shared_ubuntu14_32bit/Bisq-$version.jar"
cp gui/target/shaded.jar "/Users/dev/vm_shared_windows_32bit/Bisq.jar"
2016-07-07 13:18:24 +02:00
echo "Using JAVA_HOME: $JAVA_HOME"
$JAVA_HOME/bin/javapackager \
-deploy \
2016-06-29 13:08:07 +02:00
-BappVersion=$version \
2017-06-27 01:29:51 +02:00
-Bmac.CFBundleIdentifier=io.bisq \
2017-06-28 00:33:27 +02:00
-Bmac.CFBundleName=Bisq \
2017-06-28 01:14:04 +02:00
-Bicon=package/osx/Bisq.icns \
-Bruntime="$JAVA_HOME/jre" \
-native dmg \
2017-06-27 02:50:31 +02:00
-name Bisq \
-title Bisq \
-vendor Bisq \
2015-04-16 11:43:39 +02:00
-outdir gui/deploy \
2017-06-28 00:33:27 +02:00
-srcfiles "gui/deploy/Bisq-$version.jar" \
2017-06-27 01:29:51 +02:00
-appclass io.bisq.gui.app.BisqAppMain \
2017-06-27 10:53:47 +02:00
-outfile Bisq
2017-06-27 01:29:51 +02:00
# when we have support for security manager we use that
# \
# -BjvmOptions=-Djava.security.manager \
# -BjvmOptions=-Djava.security.debug=failure \
# -BjvmOptions=-Djava.security.policy=file:bisq.policy
2017-06-28 00:33:27 +02:00
# -srcfiles "core/src/main/resources/bisq.policy" \
2017-06-27 01:29:51 +02:00
2017-06-28 00:33:27 +02:00
rm "gui/deploy/Bisq.html"
rm "gui/deploy/Bisq.jnlp"
2017-06-27 01:29:51 +02:00
2017-06-27 10:53:47 +02:00
mv "gui/deploy/bundles/Bisq-$version.dmg" "gui/deploy/Bisq-$version.dmg"
2016-04-27 00:33:22 +02:00
rm -r "gui/deploy/bundles"
2017-06-28 10:47:10 +02:00
cd package/osx