From 598d0514ff49a26d3b1207f0d6d3eb4604dabe89 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Wed, 23 Feb 2022 22:56:54 +0900 Subject: [PATCH] a temporary solution for Windows which just uses the batch file --- buildapp/build_app_windows_x86.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 buildapp/build_app_windows_x86.sh diff --git a/buildapp/build_app_windows_x86.sh b/buildapp/build_app_windows_x86.sh new file mode 100755 index 000000000..49ecf865b --- /dev/null +++ b/buildapp/build_app_windows_x86.sh @@ -0,0 +1,24 @@ +#!/bin/bash +cd "${0%/*}" +SRCFILES="terrarumwindows_x86" +DESTDIR="TerrarumWindows.x86" +RUNTIME="runtime-windows-x86" + +# Cleanup +rm -rf $DESTDIR || true +mkdir $DESTDIR + +# Prepare an application +cp $SRCFILES/Terrarum.bat $DESTDIR/ + +# Copy over a Java runtime +cp -r "../out/$RUNTIME" $DESTDIR/ + +# Copy over all the assets and a jarfile +cp -r "../assets" $DESTDIR/ +cp -r "../out/TerrarumBuild.jar" $DESTDIR/assets/ + +# Temporary solution: zip everything +zip -r -9 -l "out/TerrarumWindows.x86.zip" $DESTDIR +rm -rf $DESTDIR || true +echo "Build successful: $DESTDIR" \ No newline at end of file