bisq/package/linux/create_64bit_app.sh
2016-06-29 18:28:12 +02:00

43 lines
1.2 KiB
Bash

#!/bin/bash
cd ../../
mkdir -p gui/deploy
set -e
# Edit version
version=0.4.9
jarFile="/media/sf_vm_shared_ubuntu/Bitsquare-$version.jar"
jdkfixFile="/media/sf_vm_shared_ubuntu/jdkfix-$version.jar"
# Note: fakeroot needs to be installed on linux
$JAVA_HOME/bin/javapackager \
-deploy \
-BjvmOptions=-Xbootclasspath/a:"jdkfix-$version.jar":"../runtime/lib/ext/jfxrt.jar" \
-Bruntime="$JAVA_HOME/jre" \
-BappVersion=$version \
-Bcategory=Internet \
-Bemail=team@bitsquare.io \
-BlicenseType=GPLv3 \
-BlicenseFile=LICENSE \
-Bicon=package/linux/icon.png \
-native deb \
-name Bitsquare \
-title Bitsquare \
-vendor Bitsquare \
-outdir gui/deploy \
-srcfiles $jarFile:$jdkfixFile \
-srcfiles package/linux/LICENSE \
-appclass io.bitsquare.app.BitsquareAppMain \
-outfile Bitsquare
rm gui/deploy/Bitsquare.html
rm gui/deploy/Bitsquare.jnlp
rm gui/deploy/LICENSE
mv "gui/deploy/bundles/bitsquare-$version.deb" "gui/deploy/Bitsquare-$version.deb"
rmdir gui/deploy/bundles
cp "gui/deploy/Bitsquare-$version.deb" "/media/sf_vm_shared_ubuntu/Bitsquare-64bit-$version.deb"
cp "gui/deploy/Bitsquare-$version.deb" "/home/mk/Desktop/Bitsquare-64bit-$version.deb"
cd package/linux