Move tooling

This commit is contained in:
2025-05-27 00:31:02 +08:00
parent c2397e8e24
commit 84ebde858e
15 changed files with 2 additions and 2 deletions

23
tooling/setup Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# 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
fi
# Build project using Ninja
cmake --build build/tmp --config Release
# Create bin directory if it doesn't exist
mkdir -p bin
# Copy binary to bin folder
# Use .exe extension on Windows, no extension on Unix-like systems
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
cp build/tmp/r3_gh_tool.exe bin/
else
cp build/tmp/r3_gh_tool bin/
fi