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_dev.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/build_dev.sh') diff --git a/scripts/build_dev.sh b/scripts/build_dev.sh index 4383d36..ed5079d 100644 --- a/scripts/build_dev.sh +++ b/scripts/build_dev.sh @@ -7,7 +7,12 @@ echo "ReiLua - Development Build" echo "================================" echo "" -# Navigate to build directory +# Get the script directory and navigate to project root +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd "$SCRIPT_DIR/.." || exit 1 + +# Create and navigate to build directory +mkdir -p build cd build || exit 1 # Clean old embedded files (important for dev builds!) -- cgit v1.2.3