[godot] More CI build script work for Windows.

This commit is contained in:
badlogic 2022-06-30 14:56:45 +02:00
parent 70a51db836
commit 8f68da5864
3 changed files with 3 additions and 26 deletions

View File

@ -1 +0,0 @@
cd godot & scons target=debug custom_modules=..\spine_godot vsproj=yes livepp=%LIVEPP% --jobs=16 & cd ..

View File

@ -46,6 +46,9 @@ if [ `uname` == 'Darwin' ] && [ $dev = "false" ]; then
chmod +x Godot.app/Contents/MacOS/Godot
popd
else
if [ "$OSTYPE" = "msys" ]; then
target="$target vsproj=yes livepp=$LIVEPP"
fi
scons $target compiledb=yes custom_modules="../spine_godot" -j16
fi
popd

View File

@ -1,25 +0,0 @@
@echo off
if [%1]==[] goto usage
set branch=%1
rmdir godot /s /q
git clone --depth 1 https://github.com/godotengine/godot.git -b %branch% || goto error
xcopy /E /I .idea godot\.idea || goto error
copy custom.py godot || goto error
rmdir spine_godot\spine-cpp /s /q
xcopy /E /I ..\spine-cpp\spine-cpp spine_godot\spine-cpp || goto error
cd godot & git apply ../livepp.patch & git apply ../livepp-v4.patch & cd ..
build.bat || goto error
exit 0
:usage
@echo.
@echo Usage^: setup.bat ^<godot_branch_or_tag^>
@echo.
@echo e.g.:
@echo setup.bat 3.4.4-stable
@echo setup.bat master
exit 1
:error
@echo Couldn^'t setup Godot