Fix windows build problems

This commit is contained in:
Manfred Karrer 2015-03-05 13:32:14 +01:00
parent 08183c3e3f
commit 35f45138d2
3 changed files with 40 additions and 0 deletions

16
package/windows/create_app.bat Executable file
View file

@ -0,0 +1,16 @@
cd ..\..\
::call mvn clean package -DskipTests -Dmaven.javadoc.skip=true
::copy gui\target\shaded.jar gui\updatefx\builds\1.jar
:: edit url
::call java -Xmx2048m -jar ./updatefx/updatefx-app-1.2.jar --url=http://localhost:8000/ 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"
:: 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"
cd package\windows

17
package/windows/setup.bat Executable file
View file

@ -0,0 +1,17 @@
:: setup dirs
cd ..\..\
mkdir gui\updatefx
mkdir gui\updatefx\builds
mkdir gui\updatefx\builds\processed
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
cd package\windows
:: start webserver for update data
:: cd ..\..\gui\updatefx\site
:: python -m SimpleHTTPServer 8000

7
package/windows/update.bat Executable file
View file

@ -0,0 +1,7 @@
call mvn clean package -DskipTests -Dmaven.javadoc.skip=true
:: edit version /*.jar
cp gui\target\shaded.jar gui\updatefx\builds\2.jar
:: edit url
call java -jar ./updatefx/updatefx-app-1.2.jar --url=http://localhost:8000/ gui/updatefx