diff --git a/package/windows/create_app.bat b/package/windows/create_app.bat new file mode 100755 index 0000000000..4f4dc38586 --- /dev/null +++ b/package/windows/create_app.bat @@ -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 \ No newline at end of file diff --git a/package/windows/setup.bat b/package/windows/setup.bat new file mode 100755 index 0000000000..427c403172 --- /dev/null +++ b/package/windows/setup.bat @@ -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 \ No newline at end of file diff --git a/package/windows/update.bat b/package/windows/update.bat new file mode 100755 index 0000000000..41d1007be3 --- /dev/null +++ b/package/windows/update.bat @@ -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 \ No newline at end of file