Fix setup script

This commit is contained in:
Guus Waals 2025-05-29 15:52:26 +08:00
parent 560fbe70ce
commit 58397127e7
1 changed files with 6 additions and 2 deletions

View File

@ -1,11 +1,13 @@
#!/bin/bash
script_dir=$(readlink -f $(dirname "$0"))
pushd $script_dir
# Create build directory if it doesn't exist
mkdir -p build/tmp
if [ ! -d "build/tmp" ]; then
# Configure project using CMake with Ninja generator for Release build
cmake -S . -B build/tmp -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake -B build/tmp -G Ninja -DCMAKE_BUILD_TYPE=Release
fi
# Build project using Ninja
@ -21,3 +23,5 @@ if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
else
cp build/tmp/r3_gh_tool bin/
fi
popd