Update build scripts, Automate version number

This commit is contained in:
Manfred Karrer 2015-03-05 20:36:42 +01:00
parent 35f45138d2
commit 5a6c7ee89d
24 changed files with 257 additions and 830 deletions

View file

@ -3,7 +3,7 @@
[Setup]
AppId={{bitsquare}}
AppName=Bitsquare
AppVersion=0.1.1-SNAPSHOT
AppVersion=0.1.1
AppVerName=Bitsquare
AppPublisher=Bitsquare
AppComments=Bitsquare

View file

@ -1,16 +1,25 @@
cd ..\..\
::call mvn clean package -DskipTests -Dmaven.javadoc.skip=true
::copy gui\target\shaded.jar gui\updatefx\builds\1.jar
:: edit buildVersion number
@echo off set buildVersion=2
:: edit fullVersion number
@echo off set fullVersion=1.1
:: edit iss file -> AppVersion=0.1.1
call mvn clean package -DskipTests -Dmaven.javadoc.skip=true
copy gui\target\shaded.jar gui\updatefx\builds\%buildVersion%.jar
:: edit url
::call java -Xmx2048m -jar ./updatefx/updatefx-app-1.2.jar --url=http://localhost:8000/ gui/updatefx
call java -Xmx2048m -jar ./updatefx/updatefx-app-1.2.jar --url=http://bitsquare.io/updateFX/ gui/updatefx
:: 64 bit build
:: Needs Inno Setup 5 or later (http://www.jrsoftware.org/isdl.php)
:: Build with jdk1.8.0_40 fails but jdk1.8.0_3 works
call "C:\Program Files\Java\jdk1.8.0_31\bin\javapackager.exe" -deploy -BappVersion=0.1 -native exe -name Bitsquare -title Bitsquare -vendor Bitsquare -outdir gui\deploy -appclass io.bitsquare.app.gui.BitsquareAppMain -srcfiles "gui\updatefx\builds\processed\1.jar" -outfile Bitsquare -Bruntime="C:\Program Files\Java\jdk1.8.0_31\jre"
call "C:\Program Files\Java\jdk1.8.0_31\bin\javapackager.exe" -deploy -BappVersion=%fullVersion% -native exe -name Bitsquare -title Bitsquare -vendor Bitsquare -outdir gui\deploy -appclass io.bitsquare.app.gui.BitsquareAppMain -srcfiles "gui\updatefx\builds\processed\%buildVersion%.jar" -outfile Bitsquare -Bruntime="C:\Program Files\Java\jdk1.8.0_31\jre"
:: 32 bit build
::call "C:\Program Files (x86)\Java\jdk1.8.0_31\bin\javapackager.exe" -deploy -BappVersion=0.1 -native exe -name Bitsquare -title Bitsquare -vendor Bitsquare -outdir gui\deploy\win-32bit -appclass io.bitsquare.app.gui.BitsquareAppMain -srcfiles "gui\updatefx\builds\processed\1.jar" -outfile Bitsquare -Bruntime="C:\Program Files (x86)\Java\jdk1.8.0_31\jre"
:: call "C:\Program Files (x86)\Java\jdk1.8.0_31\bin\javapackager.exe" -deploy -BappVersion=%fullVersion% -native exe -name Bitsquare -title Bitsquare -vendor Bitsquare -outdir gui\deploy -appclass io.bitsquare.app.gui.BitsquareAppMain -srcfiles "gui\updatefx\builds\processed\%buildVersion%.jar" -outfile Bitsquare -Bruntime="C:\Program Files (x86)\Java\jdk1.8.0_31\jre"
cd package\windows

View file

@ -1,5 +1,6 @@
:: setup dirs
cd ..\..\
cd ..\..\
:: setup dirs
mkdir gui\updatefx
mkdir gui\updatefx\builds
mkdir gui\updatefx\builds\processed
@ -7,11 +8,7 @@ mkdir gui\updatefx\site
mkdir gui\deploy
mkdir gui\win-32bit
:: create key/wallet. Copy wallet to UpdateProcess or use wallet form other OS build
call java -Xmx2048m -jar ./updatefx/updatefx-app-1.2.jar --url=http://localhost:8000/ gui/updatefx
:: Copy wallet file from main build
call java -Xmx2048m -jar ./updatefx/updatefx-app-1.2.jar --url=http://bitsquare.io/updateFX/ gui/updatefx
cd package\windows
:: start webserver for update data
:: cd ..\..\gui\updatefx\site
:: python -m SimpleHTTPServer 8000
cd package\windows

View file

@ -1,7 +1,9 @@
call mvn clean package -DskipTests -Dmaven.javadoc.skip=true
:: edit version /*.jar
cp gui\target\shaded.jar gui\updatefx\builds\2.jar
:: edit buildVersion number
@echo off set buildVersion=2
:: edit url
call java -jar ./updatefx/updatefx-app-1.2.jar --url=http://localhost:8000/ gui/updatefx
:: edit version /*.jar
cp gui\target\shaded.jar gui\updatefx\builds\%buildVersion%.jar
call java -jar ./updatefx/updatefx-app-1.2.jar --url=http://bitsquare.io/updateFX/ gui/updatefx