forked from Exslims/MercuryTrade
-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
build_mercury_with_zip.bat
33 lines (32 loc) · 953 Bytes
/
build_mercury_with_zip.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
echo off
cls
echo MercuryTrade build starting
echo mvn clean package
call mvn clean package
echo Copying MercuryTrade.jar from app/target to release_files
cd app/target
copy MercuryTrade.jar "../../release_files"
cd ../..
echo Launching launch4j.exe to generate MercuryTrade.exe from .jar file
cd launch4j
launch4jc.exe ../release_files/release_config.xml
cd ..
echo build_mercury_bat completed
echo preparing zip files for release starting...
echo zipping with jar file start
cd release_files
echo removing old zip files
del MercuryTrade.jar.zip
del MercuryTrade.exe.zip
copy MercuryTrade.jar MercuryTrade
call powershell Compress-Archive MercuryTrade MercuryTrade.jar.zip
cd MercuryTrade
del MercuryTrade.jar
cd ..
echo Zipping with jar completed
echo Zipping with exe file start
copy MercuryTrade.exe MercuryTrade
call powershell Compress-Archive MercuryTrade MercuryTrade.exe.zip
cd MercuryTrade
del MercuryTrade.exe
echo zipping with exe completed