From ece59de51d1bf70dcf943a37aba0e6a0ea07367b Mon Sep 17 00:00:00 2001 From: a-bad-dev <244852891+a-bad-dev@users.noreply.github.com> Date: Sat, 18 Apr 2026 17:27:43 -0300 Subject: [PATCH 1/5] nicer debug messages --- build.sh | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/build.sh b/build.sh index 741b975..1c4410b 100644 --- a/build.sh +++ b/build.sh @@ -1,17 +1,22 @@ #!/bin/bash -# # this script is intended to be run in MSYS2 CLANG64 -# VERSION="5.15.2" +BOLD="\x1b[1m" +GREEN="\x1b[32m" +RESET="\x1b[0m" + # system update (skip this most of the time) +echo -e "${BOLD}Updating system...${RESET}" pacman -Syu # install deps +echo -e "${BOLD}Installing dependencies...${RESET}" pacman -S zip git mingw-w64-clang-x86_64-{clang,cmake,ninja,curl-winssl,libpng,libjpeg-turbo,freetype,libogg,libvorbis,sqlite3,openal,zstd,gettext,luajit,SDL2} -# download and extract sources +# download and extract sources - TODO: download, compile, and use luajit +echo -e "${BOLD}Downloading Luanti source code...${RESET}" curl -Lo luanti.tar.gz https://github.com/luanti-org/luanti/archive/refs/tags/${VERSION}.tar.gz gunzip luanti.tar.gz @@ -20,19 +25,21 @@ tar -xf luanti.tar cd luanti-${VERSION}/ # configure +echo -e "${BOLD}Preparing to compile...${RESET}" cmake . -G Ninja -DRUN_IN_PLACE=TRUE -DBUILD_CLIENT=FALSE -DBUILD_SERVER=TRUE # compile +echo -e "${BOLD}Compiling Luanti...${RESET}" ninja -j$(nproc) # bundle DLLs +echo -e "${BOLD}Bundling DLLs...${RESET}" chmod +x ../bundle_dlls.sh - ../bundle_dlls.sh bin/luantiserver.exe bin/ # build the zip archive of luantiserver -mkdir luantiserver-${VERSION}-msys2-win64/ -mkdir luantiserver-${VERSION}-msys2-win64/{textures,games} +echo -e "${BOLD}Building zip file...${RESET}" +mkdir -p luantiserver-${VERSION}-msys2-win64/{textures,games} cp -r bin/ builtin/ mods/ worlds/ luantiserver-${VERSION}-msys2-win64/ cp textures/texture_packs_here.txt luantiserver-${VERSION}-msys2-win64/textures/ @@ -40,8 +47,9 @@ cp textures/texture_packs_here.txt luantiserver-${VERSION}-msys2-win64/textures/ zip -r9 luantiserver-${VERSION}-msys2-win64.zip luantiserver-${VERSION}-msys2-win64/ # clean up +echo -e "${BOLD}Cleaning up...${RESET}" mv luantiserver-${VERSION}-msys2-win64.zip .. cd .. rm -rf luanti{.tar,-${VERSION}} -echo "done" +echo -e "${BOLD}${GREEN}Done!${RESET}" From 08ba4b164f40f62c1d042d19d34a246402546a65 Mon Sep 17 00:00:00 2001 From: a-bad-dev <244852891+a-bad-dev@users.noreply.github.com> Date: Sun, 19 Apr 2026 23:26:19 -0300 Subject: [PATCH 2/5] include the doc/ folder --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 1c4410b..ea53642 100644 --- a/build.sh +++ b/build.sh @@ -41,7 +41,7 @@ chmod +x ../bundle_dlls.sh echo -e "${BOLD}Building zip file...${RESET}" mkdir -p luantiserver-${VERSION}-msys2-win64/{textures,games} -cp -r bin/ builtin/ mods/ worlds/ luantiserver-${VERSION}-msys2-win64/ +cp -r bin/ builtin/ doc/ mods/ worlds/ luantiserver-${VERSION}-msys2-win64/ cp textures/texture_packs_here.txt luantiserver-${VERSION}-msys2-win64/textures/ zip -r9 luantiserver-${VERSION}-msys2-win64.zip luantiserver-${VERSION}-msys2-win64/ From b948bbcbb6ee8fd3ccf9bbd26c01e850836127ee Mon Sep 17 00:00:00 2001 From: a-bad-dev <244852891+a-bad-dev@users.noreply.github.com> Date: Tue, 28 Apr 2026 20:49:52 -0300 Subject: [PATCH 3/5] Update scripts for 5.16.0-rc1 --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index ea53642..312a08e 100644 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/bash # this script is intended to be run in MSYS2 CLANG64 -VERSION="5.15.2" +VERSION="5.16.0-rc1" BOLD="\x1b[1m" GREEN="\x1b[32m" From 5709e239df8916dc57a75e57945672fb7f238529 Mon Sep 17 00:00:00 2001 From: a-bad-dev <244852891+a-bad-dev@users.noreply.github.com> Date: Sun, 10 May 2026 14:15:47 -0300 Subject: [PATCH 4/5] Update scripts for 5.16.0 and remove a few extra steps --- build.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 312a08e..151450b 100644 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/bash # this script is intended to be run in MSYS2 CLANG64 -VERSION="5.16.0-rc1" +VERSION="5.16.0" BOLD="\x1b[1m" GREEN="\x1b[32m" @@ -39,10 +39,9 @@ chmod +x ../bundle_dlls.sh # build the zip archive of luantiserver echo -e "${BOLD}Building zip file...${RESET}" -mkdir -p luantiserver-${VERSION}-msys2-win64/{textures,games} +mkdir luantiserver-${VERSION}-msys2-win64/ -cp -r bin/ builtin/ doc/ mods/ worlds/ luantiserver-${VERSION}-msys2-win64/ -cp textures/texture_packs_here.txt luantiserver-${VERSION}-msys2-win64/textures/ +cp -r bin/ builtin/ minetest.conf.example luantiserver-${VERSION}-msys2-win64/ zip -r9 luantiserver-${VERSION}-msys2-win64.zip luantiserver-${VERSION}-msys2-win64/ From d11b2acfedf628bd413b32d1b262150847c82778 Mon Sep 17 00:00:00 2001 From: a-bad-dev <244852891+a-bad-dev@users.noreply.github.com> Date: Sun, 10 May 2026 15:10:44 -0300 Subject: [PATCH 5/5] Update scripts for 5.16.1 --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 151450b..61a0671 100644 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/bash # this script is intended to be run in MSYS2 CLANG64 -VERSION="5.16.0" +VERSION="5.16.1" BOLD="\x1b[1m" GREEN="\x1b[32m"