refactorings

This commit is contained in:
Oscar Krause
2025-04-11 20:19:58 +02:00
parent 5ab2e0db11
commit c8cd51a9f5
7 changed files with 9 additions and 0 deletions

11
src/build.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
if [ "$1" == "clean" ] || [ "$1" == "rebuild" ]; then
rm -rf build gridd-unlock-patcher
fi
if [ "$1" == "rebuild" ] || [ "$1" != "clean" ]; then
mkdir -p build; cd build
cmake -DCMAKE_BUILD_TYPE=Release .. && make -j$(nproc) && mv gridd-unlock-patcher ..
cd ..
fi