mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 10:22:18 +01:00
82 lines
2.2 KiB
Bash
Executable File
82 lines
2.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
cd $(dirname $0)/../../
|
|
|
|
mkdir -p deploy
|
|
|
|
set -e
|
|
|
|
version="0.7.0"
|
|
|
|
./gradlew --include-build ../common --include-build ../assets --include-build ../p2p --include-build ../core shadowJar
|
|
|
|
EXE_JAR=build/libs/bisq-desktop-0.7.0-all.jar
|
|
|
|
linux32=build/vm/vm_shared_ubuntu14_32bit
|
|
linux64=build/vm/vm_shared_ubuntu
|
|
win32=build/vm/vm_shared_windows_32bit
|
|
win64=build/vm/vm_shared_windows
|
|
|
|
mkdir -p $linux32 $linux64 $win32 $win64
|
|
|
|
cp $EXE_JAR "deploy/Bisq-$version.jar"
|
|
|
|
# copy app jar to VM shared folders
|
|
cp $EXE_JAR "$linux32/Bisq-$version.jar"
|
|
cp $EXE_JAR "$linux64/Bisq-$version.jar"
|
|
# At windows we don't add the version nr as it would keep multiple versions of jar files in app dir
|
|
cp $EXE_JAR "$win32/Bisq.jar"
|
|
cp $EXE_JAR "$win64/Bisq.jar"
|
|
|
|
# Copy packager scripts to VM. No need to checkout the source as we only are interested in the build scripts.
|
|
mkdir -p "$linux32/package/linux"
|
|
mkdir -p "$linux64/package/linux"
|
|
mkdir -p "$win32/package/windows"
|
|
mkdir -p "$win64/package/windows"
|
|
|
|
cp -r package/linux "$linux32/package/linux"
|
|
cp -r package/linux "$linux64/package/linux"
|
|
cp -r package/windows "$win32/package/windows"
|
|
cp -r package/windows "$win64/package/windows"
|
|
|
|
|
|
if [ -z "$JAVA_HOME" ]; then
|
|
JAVA_HOME=$(/usr/libexec/java_home)
|
|
fi
|
|
|
|
echo "Using JAVA_HOME: $JAVA_HOME"
|
|
$JAVA_HOME/bin/javapackager \
|
|
-deploy \
|
|
-BappVersion=$version \
|
|
-Bmac.CFBundleIdentifier=io.bisq \
|
|
-Bmac.CFBundleName=Bisq \
|
|
-Bicon=package/osx/Bisq.icns \
|
|
-Bruntime="$JAVA_HOME/jre" \
|
|
-native dmg \
|
|
-name Bisq \
|
|
-title Bisq \
|
|
-vendor Bisq \
|
|
-outdir deploy \
|
|
-srcfiles "deploy/Bisq-$version.jar" \
|
|
-appclass bisq.desktop.app.BisqAppMain \
|
|
-outfile Bisq
|
|
|
|
|
|
# TODO <Class-Path>lib/bcpg-jdk15on.jar lib/bcprov-jdk15on.jar</Class-Path> not included in build
|
|
# 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
|
|
# -srcfiles "core/src/main/resources/bisq.policy" \
|
|
|
|
rm "deploy/Bisq.html"
|
|
rm "deploy/Bisq.jnlp"
|
|
|
|
mv "deploy/bundles/Bisq-$version.dmg" "deploy/Bisq-$version.dmg"
|
|
rm -r "deploy/bundles"
|
|
|
|
open deploy
|
|
|
|
cd package/osx
|