From e0fc6b28030daf30a6b54b568e793c2d1f9513ba Mon Sep 17 00:00:00 2001 From: "Maurice L." Date: Tue, 24 Mar 2026 14:41:50 +0100 Subject: [PATCH] suppress output of asset copying in build script and adjust directory navigation --- build.bat | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 build.bat diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..9c632f0 --- /dev/null +++ b/build.bat @@ -0,0 +1,22 @@ +@echo off +echo [1/4] Clearing old files... +rd /s /q "out/app" + +echo [2/4] Building game... +jpackage --type app-image ^ + --dest "out/app" ^ + --name "JGame2D" ^ + --input "out/artifacts/JGame2D_jar" ^ + --main-jar "JGame2D.jar" ^ + --main-class de.miaurizius.jgame2d.core.Boot + +echo [3/4] Copy assets +robocopy "assets" "out/app/JGame2D/assets" /e > nul + +echo [4/4] Zipping... +cd out\app +tar -a -c -f ..\JGame2D.zip JGame2D + +cd ../.. + +echo Done! \ No newline at end of file