Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Release preparations for v0.7.0 #1528

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ build
desktop.ini
*/target/*
*.class
deploy
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
classpath files('gradle/witness/gradle-witness.jar')
}
}
Expand All @@ -12,6 +12,7 @@ apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'maven'
apply plugin: 'witness'
apply plugin: 'com.github.johnrengelman.shadow'

group = 'network.bisq'
version = '-SNAPSHOT'
Expand Down
5 changes: 3 additions & 2 deletions package/linux/32bitBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ mkdir -p deploy
set -e

# Edit version
version=0.6.7
version=0.7.0

dir="/media/sf_vm_shared_ubuntu14_32bit"
linux_user="bisq"

# Note: fakeroot needs to be installed on linux
$JAVA_HOME/bin/javapackager \
Expand Down Expand Up @@ -44,7 +45,7 @@ $JAVA_HOME/bin/javapackager \

# sudo alien -r -c -k deploy/bundles/bisq-$version.deb

cp "deploy/bundles/bisq-$version.deb" "/home/bitsquare/Desktop/Bisq-32bit-$version.deb"
cp "deploy/bundles/bisq-$version.deb" "/home/$bisq/Desktop/Bisq-32bit-$version.deb"
mv "deploy/bundles/bisq-$version.deb" "/media/sf_vm_shared_ubuntu14_32bit/Bisq-32bit-$version.deb"

# mv "bisq-$version-1.i386.rpm" "/media/sf_vm_shared_ubuntu14_32bit/Bisq-32bit-$version.rpm"
Expand Down
5 changes: 3 additions & 2 deletions package/linux/64bitBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ mkdir -p deploy
set -e

# Edit version
version=0.6.7
version=0.7.0

dir="/media/sf_vm_shared_ubuntu"
linux_user="bisq"

# Note: fakeroot needs to be installed on linux
$JAVA_HOME/bin/javapackager \
Expand Down Expand Up @@ -44,7 +45,7 @@ $JAVA_HOME/bin/javapackager \
# uncomment because the build VM does not support alien
#sudo alien -r -c -k deploy/bundles/bisq-$version.deb

cp "deploy/bundles/bisq-$version.deb" "/home/mk/Desktop/Bisq-64bit-$version.deb"
cp "deploy/bundles/bisq-$version.deb" "/home/$linux_user/Desktop/Bisq-64bit-$version.deb"
mv "deploy/bundles/bisq-$version.deb" "/media/sf_vm_shared_ubuntu/Bisq-64bit-$version.deb"
#mv "bisq-$version-1.x86_64.rpm" "/media/sf_vm_shared_ubuntu/Bisq-64bit-$version.rpm"
rm -r deploy/
Expand Down
2 changes: 1 addition & 1 deletion package/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# pull base image
FROM openjdk:8-jdk
ENV version 0.6.7
ENV version 0.7.0

RUN apt-get update && apt-get install -y --no-install-recommends openjfx && rm -rf /var/lib/apt/lists/* &&
apt-get install -y vim fakeroot
Expand Down
6 changes: 3 additions & 3 deletions package/osx/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundleName</key>
<string>Bisq</string>
<key>CFBundleIdentifier</key>
<string>io.bisq.Bisq</string>
<string>network.bisq.CAT</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
Expand All @@ -30,7 +30,7 @@
<key>CFBundleVersion</key>
<string>1</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright (C) 2015</string>
<string>Copyright (C) 2018</string>
<key>NSHighResolutionCapable</key>
<string>true</string>
<key>JVMRuntime</key>
Expand All @@ -40,7 +40,7 @@
<key>JVMAppClasspath</key>
<string></string>
<key>JVMMainJarName</key>
<string>shaded.jar</string>
<string>Bisq-0.7.0.jar</string>
<key>JVMPreferencesID</key>
<string>bisq</string>
<key>JVMOptions</key>
Expand Down
23 changes: 13 additions & 10 deletions package/osx/create_app.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/bin/bash

cd ../../
cd $(dirname $0)/../../

mkdir -p deploy

set -e

version="0.6.7"
version="0.7.0"

./gradlew shadowJar

./gradlew build
EXE_JAR=build/libs/bisq-desktop--SNAPSHOT-all.jar

linux32=build/vm/vm_shared_ubuntu14_32bit
linux64=build/vm/vm_shared_ubuntu
Expand All @@ -16,14 +19,14 @@ win64=build/vm/vm_shared_windows

mkdir -p $linux32 $linux64 $win32 $win64

cp build/libs/bisq-desktop.jar "deploy/Bisq-$version.jar"
cp $EXE_JAR "deploy/Bisq-$version.jar"

# copy app jar to VM shared folders
cp build/libs/bisq-desktop.jar "$linux32/Bisq-$version.jar"
cp build/libs/bisq-desktop.jar "$linux64/Bisq-$version.jar"
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 build/libs/bisq-desktop.jar "$win32/Bisq.jar"
cp build/libs/bisq-desktop.jar "$win64/Bisq.jar"
cp $EXE_JAR "$win32/Bisq.jar"
cp $EXE_JAR "$win64/Bisq.jar"

if [ -z "$JAVA_HOME" ]; then
JAVA_HOME=$(/usr/libexec/java_home)
Expand All @@ -33,8 +36,8 @@ echo "Using JAVA_HOME: $JAVA_HOME"
$JAVA_HOME/bin/javapackager \
-deploy \
-BappVersion=$version \
-Bmac.CFBundleIdentifier=bisq \
-Bmac.CFBundleName=Bisq \
-Bmac.CFBundleIdentifier=network.bisq \
-Bmac.CFBundleName=CAT \
-Bicon=package/osx/Bisq.icns \
-Bruntime="$JAVA_HOME/jre" \
-native dmg \
Expand Down
50 changes: 29 additions & 21 deletions package/osx/finalize.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
#!/bin/bash

version="0.6.7"
cd ../../

target_dir="/Users/dev/Documents/__bisq/_releases/$version"
src_dir="/Users/dev/idea/exchange"
version="0.7.0"

target_dir="releases/$version"

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
macOS=build/vm/vm_shared_macosx
gpg_user="[email protected]"

rm -r $target_dir

Expand All @@ -21,14 +29,14 @@ cp "$target_dir/../29CDFD3B.asc" "$target_dir/"
# signing key
cp "$target_dir/../signingkey.asc" "$target_dir/"

mac="Bisq-$version.dmg"
cp "$src_dir/deploy/$mac" "$target_dir/"
dmg="Bisq-$version.dmg"
cp "$macOS/$dmg" "$target_dir/"

deb32="Bisq-32bit-$version.deb"
cp "/Users/dev/vm_shared_ubuntu14_32bit/$deb32" "$target_dir/"
cp "$linux32/$deb32" "$target_dir/"

deb64="Bisq-64bit-$version.deb"
cp "/Users/dev/vm_shared_ubuntu/$deb64" "$target_dir/"
cp "$linux64/$deb64" "$target_dir/"

#rpm32="Bisq-32bit-$version.rpm"
#cp "/Users/dev/vm_shared_ubuntu14_32bit/$rpm32" "$target_dir/"
Expand All @@ -38,27 +46,27 @@ cp "/Users/dev/vm_shared_ubuntu/$deb64" "$target_dir/"


exe="Bisq-$version.exe"
win32="Bisq-32bit-$version.exe"
cp "/Users/dev/vm_shared_windows_32bit/bundles/$exe" "$target_dir/$win32"
win64="Bisq-64bit-$version.exe"
cp "/Users/dev/vm_shared_windows/bundles/$exe" "$target_dir/$win64"
exe32="Bisq-32bit-$version.exe"
cp "$win32/bundles/$exe" "$target_dir/$exe32"
exe64="Bisq-64bit-$version.exe"
cp "$win64/bundles/$exe" "$target_dir/$exe64"
#cp "/Users/dev/vm_shared_windows/bundles/$exe" "/Users/dev/vm_shared_win10/$win64"

cd "$target_dir"


gpg --digest-algo SHA256 --local-user [email protected] --output $mac.asc --detach-sig --armor $mac
gpg --digest-algo SHA256 --local-user [email protected] --output $deb64.asc --detach-sig --armor $deb64
gpg --digest-algo SHA256 --local-user [email protected] --output $deb32.asc --detach-sig --armor $deb32
gpg --digest-algo SHA256 --local-user [email protected] --output $win64.asc --detach-sig --armor $win64
gpg --digest-algo SHA256 --local-user [email protected] --output $win32.asc --detach-sig --armor $win32
gpg --digest-algo SHA256 --local-user $gpg_user --output $dmg.asc --detach-sig --armor $dmg
gpg --digest-algo SHA256 --local-user $gpg_user --output $deb64.asc --detach-sig --armor $deb64
gpg --digest-algo SHA256 --local-user $gpg_user --output $deb32.asc --detach-sig --armor $deb32
gpg --digest-algo SHA256 --local-user $gpg_user --output $exe64.asc --detach-sig --armor $exe64
gpg --digest-algo SHA256 --local-user $gpg_user --output $exe32.asc --detach-sig --armor $exe32

gpg --digest-algo SHA256 --verify $mac{.asc*,}
gpg --digest-algo SHA256 --verify $dmg{.asc*,}
gpg --digest-algo SHA256 --verify $deb64{.asc*,}
gpg --digest-algo SHA256 --verify $deb32{.asc*,}
gpg --digest-algo SHA256 --verify $win64{.asc*,}
gpg --digest-algo SHA256 --verify $win32{.asc*,}
gpg --digest-algo SHA256 --verify $exe64{.asc*,}
gpg --digest-algo SHA256 --verify $exe32{.asc*,}

cp -r $target_dir /Users/dev/vm_shared_windows_32bit/
#cp -r $target_dir /Users/dev/vm_shared_windows_32bit/

open "$target_dir"
open "."
2 changes: 1 addition & 1 deletion package/windows/32bitBuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:: 32 bit build
:: Needs Inno Setup 5 or later (http://www.jrsoftware.org/isdl.php)

SET version=0.6.7
SET version=0.7.0

:: Private setup
SET outdir=\\VBOXSVR\vm_shared_windows_32bit
Expand Down
2 changes: 1 addition & 1 deletion package/windows/64bitBuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:: 64 bit build
:: Needs Inno Setup 5 or later (http://www.jrsoftware.org/isdl.php)

SET version=0.6.7
SET version=0.7.0

:: Private setup
SET outdir=\\VBOXSVR\vm_shared_windows
Expand Down
2 changes: 1 addition & 1 deletion package/windows/Bisq.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[Setup]
AppId={{bisq}}
AppName=Bisq
AppVersion=0.6.7
AppVersion=0.7.0
AppVerName=Bisq
AppPublisher=Bisq
AppComments=Bisq
Expand Down