bisq/package/mac/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-06-27 01:29:51 +02:00
version="0.5.0"
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
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 \
-Bmac.CFBundleName=bisq \
-Bicon=package/mac/bisq.icns \
-Bruntime="$JAVA_HOME/jre" \
-native dmg \
2017-06-27 01:29:51 +02:00
-name bisq \
-title bisq \
-vendor bisq \
2015-04-16 11:43:39 +02:00
-outdir gui/deploy \
2017-06-27 01:29:51 +02:00
-srcfiles "gui/deploy/bisq-$version.jar" \
-srcfiles "core/src/main/resources/bisq.policy" \
-appclass io.bisq.gui.app.BisqAppMain \
-outfile bisq
# 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
rm "gui/deploy/bisq.html"
rm "gui/deploy/bisq.jnlp"
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"
2016-06-29 19:06:06 +02:00
cd package/mac