Skip to content

Commit

Permalink
Added distribution script
Browse files Browse the repository at this point in the history
  • Loading branch information
HarmfulBreeze committed Feb 19, 2021
1 parent 1b07960 commit db78f49
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/make_distrib.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@echo off
pushd "%~dp0..\out"
for /f %%i in ('jdeps --print-module-deps artifacts\HD6Tools_jar\HD6Tools.jar') do set MODULES=%%i
rmdir /s /q distrib
mkdir distrib
jlink --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules %MODULES% --output distrib\java-distrib
copy artifacts\HD6Tools_jar\HD6Tools.jar distrib\java-distrib\bin\HD6Tools.jar
echo @echo off> distrib\HD6Tools.bat
echo java-distrib\bin\java -jar java-distrib\bin\HD6Tools.jar %%*>> distrib\HD6Tools.bat
popd

0 comments on commit db78f49

Please sign in to comment.