From e19bddd8d7b77e6aa173b8138b31679415afb3fa Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Mon, 3 Nov 2025 19:50:20 +0530 Subject: chore: fix build scripts to create build directory and update gitignore - Update all build scripts (.sh and .bat) to automatically create build directory if it doesn't exist - Fix 'can't cd to build' error that occurred when build directory was missing - Update .gitignore to exclude build artifacts and IDE files - Add proper navigation to project root in build_dev.bat for consistency --- scripts/build_release.bat | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/build_release.bat') diff --git a/scripts/build_release.bat b/scripts/build_release.bat index 17b76c1..a1a08c0 100644 --- a/scripts/build_release.bat +++ b/scripts/build_release.bat @@ -7,13 +7,17 @@ echo ReiLua - Release Build echo ================================ echo. +REM Get script directory and navigate to project root +cd /d "%~dp0.." + REM Check if we're in the right directory if not exist "CMakeLists.txt" ( - echo ERROR: Please run this script from the ReiLua root directory + echo ERROR: Cannot find CMakeLists.txt in project root exit /b 1 ) -REM Navigate to build directory +REM Create and navigate to build directory +if not exist "build" mkdir build cd build if errorlevel 1 ( echo ERROR: Cannot access build directory -- cgit v1.2.3