added untested windows support

This commit is contained in:
Oscar Krause
2025-04-17 07:13:15 +02:00
parent dceefe032b
commit e6988a7a28
5 changed files with 244 additions and 65 deletions

View File

@@ -4,8 +4,6 @@ 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 ..
if [ -z "$1" ] || [ "$1" == "rebuild" ] || [ "$1" == "build" ]; then
cmake -DCMAKE_BUILD_TYPE=Release -B build && make -j$(nproc) -C build && mv build/gridd-unlock-patcher .
fi