fix build steps

This commit is contained in:
2026-06-07 23:14:44 +08:00
parent 0cb11473ea
commit 1d49b63295
5 changed files with 17 additions and 144 deletions
+7 -3
View File
@@ -15,9 +15,13 @@ if %errorlevel% == 0 (
powershell -Command "(Get-Content thirdparty/leanclr/src/runtime/build_config.h) -replace 'LEANCLR_FATAL_ON_RAISE_NOT_IMPLEMENTED_ERROR 1', 'LEANCLR_FATAL_ON_RAISE_NOT_IMPLEMENTED_ERROR 0' | Set-Content thirdparty/leanclr/src/runtime/build_config.h"
)
python3 tools\binding_generator\generate_bindings.py --api build-master\_deps\godot-cpp-src\gdextension\extension_api.json
cmake -S . -B build-master -DCMAKE_BUILD_TYPE=Debug || exit /b 1
cmake -S . -B build-master -DCMAKE_BUILD_TYPE=Debug || exit /b 1
cmake -S . -B build-master -DCMAKE_BUILD_TYPE=Debug
if errorlevel 1 (
echo [build-windows] Initial cmake configure failed, running binding generator and retrying...
python3 tools\binding_generator\generate_bindings.py --api build-master\_deps\godot-cpp-src\gdextension\extension_api.json
if errorlevel 1 exit /b 1
cmake -S . -B build-master -DCMAKE_BUILD_TYPE=Debug || exit /b 1
)
cmake --build build-master --config Debug --target leanclr_godot || exit /b 1
dotnet msbuild managed\GodotSharpCompat\GodotSharpCompat.csproj -p:Configuration=Debug || exit /b 1