Skip to content

Commit

Permalink
Added instructions for jar file, changed build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Morph21 committed Dec 16, 2024
1 parent 918ac8f commit 06f064d
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@ logs/
release_files/MercuryTrade.*
release_files/resources/
release_files/launch4j.log
release_files/lang.zip

11 changes: 10 additions & 1 deletion build_mercury_with_zip.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,23 @@ echo removing old zip files
del MercuryTrade.jar.zip
del MercuryTrade.exe.zip
copy MercuryTrade.jar MercuryTrade
copy HOW_TO_RUN_JAR.txt MercuryTrade
call powershell Compress-Archive MercuryTrade MercuryTrade.jar.zip
cd MercuryTrade
del MercuryTrade.jar
del HOW_TO_RUN_JAR.txt
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
cd ..
echo zipping with exe completed
echo zipping with lang started
echo removing old lang files
del lang.zip
call powershell Compress-Archive ../app-shared/src/main/resources/lang lang.zip
echo zipping with lang ended

28 changes: 28 additions & 0 deletions just_zip.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
echo off
cls
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
copy HOW_TO_RUN_JAR.txt MercuryTrade
call powershell Compress-Archive MercuryTrade MercuryTrade.jar.zip
cd MercuryTrade
del MercuryTrade.jar
del HOW_TO_RUN_JAR.txt
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
cd ..
echo zipping with exe completed
echo zipping with lang started
echo removing old lang files
del lang.zip
call powershell Compress-Archive ../app-shared/src/main/resources/lang/* lang.zip
echo zipping with lang ended
6 changes: 6 additions & 0 deletions release_files/HOW_TO_RUN_JAR.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
If you want to run this app from jar you need to type in cmd following command:

java "-Dfile.encoding=UTF-8" -jar MercuryTrade.jar

This s very important "-Dfile.encoding=UTF-8" since it loads application with UTF-8 charset so characters like ąśćł and some chinese/japanese characters needs that

0 comments on commit 06f064d

Please sign in to comment.