@echo off cd /d %~dp0 REM Ensure MinGW32 toolchain is first in PATH (matches compile.bat) set "PATH=C:\msys64\mingw32\bin;%PATH%" REM Configure CMake (generate into build/) cmake -S . -B build -G "MinGW Makefiles" if errorlevel 1 goto :error REM Build (Release by default) cmake --build build --config Release -j if errorlevel 1 goto :error echo. echo Build completed. echo Outputs in .\build : echo - BlockLua.dll echo - BlockLua-Unsafe.dll exit /b 0 :error echo. echo Build failed. See errors above. exit /b 1