From 70a51db83662f268b1a9862b52a5658bb0421b55 Mon Sep 17 00:00:00 2001 From: badlogic Date: Thu, 30 Jun 2022 14:45:15 +0200 Subject: [PATCH 1/4] [godot] more CI build script work --- spine-godot/build/setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spine-godot/build/setup.sh b/spine-godot/build/setup.sh index e5aabd5af..a400e3e18 100755 --- a/spine-godot/build/setup.sh +++ b/spine-godot/build/setup.sh @@ -25,6 +25,13 @@ if [ $dev = "true" ]; then cp build/custom.py godot rm -rf example/.import rm -rf example/.godot + + if [ "$OSTYPE" = "msys" ]; then + pushd godot + git apply ../build/livepp.patch + git apply ../build/livepp-v4.patch + popd + fi fi cp -r ../spine-cpp/spine-cpp spine_godot popd From 8f68da5864d6c8ea91ffdad0f6d9a45d6200b225 Mon Sep 17 00:00:00 2001 From: badlogic Date: Thu, 30 Jun 2022 14:56:45 +0200 Subject: [PATCH 2/4] [godot] More CI build script work for Windows. --- spine-godot/build/build.bat | 1 - spine-godot/build/build.sh | 3 +++ spine-godot/build/setup.bat | 25 ------------------------- 3 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 spine-godot/build/build.bat delete mode 100644 spine-godot/build/setup.bat diff --git a/spine-godot/build/build.bat b/spine-godot/build/build.bat deleted file mode 100644 index 7b018de5a..000000000 --- a/spine-godot/build/build.bat +++ /dev/null @@ -1 +0,0 @@ -cd godot & scons target=debug custom_modules=..\spine_godot vsproj=yes livepp=%LIVEPP% --jobs=16 & cd .. diff --git a/spine-godot/build/build.sh b/spine-godot/build/build.sh index 1a285c630..f82f64ddb 100755 --- a/spine-godot/build/build.sh +++ b/spine-godot/build/build.sh @@ -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 diff --git a/spine-godot/build/setup.bat b/spine-godot/build/setup.bat deleted file mode 100644 index 596f68488..000000000 --- a/spine-godot/build/setup.bat +++ /dev/null @@ -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 ^ -@echo. -@echo e.g.: -@echo setup.bat 3.4.4-stable -@echo setup.bat master -exit 1 - -:error -@echo Couldn^'t setup Godot \ No newline at end of file From 4f18911433eae3aafbfb533b4375474eea637174 Mon Sep 17 00:00:00 2001 From: badlogic Date: Thu, 30 Jun 2022 15:48:46 +0200 Subject: [PATCH 3/4] [godot] More CI build script work. --- spine-godot/build/build-templates.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spine-godot/build/build-templates.sh b/spine-godot/build/build-templates.sh index b14c61131..aff1d0488 100755 --- a/spine-godot/build/build-templates.sh +++ b/spine-godot/build/build-templates.sh @@ -26,7 +26,13 @@ fi platform=${1%/} pushd ../godot -if [ "$platform" = "macos" ]; then +if [ "$platform" = "windows" ]; then + # --- Windows --- + #generates windows_64_debug.exe and windows_64_release.exe + scons platform=windows tools=no target=release custom_modules="../spine_godot" -j8 + scons platform=windows tools=no target=release_debug custom_modules="../spine_godot" -j8 + +elif [ "$platform" = "macos" ]; then # --- macOS --- # generates osx.zip From b33b27e71b873c5d16ae1df22c51614a9789c12d Mon Sep 17 00:00:00 2001 From: badlogic Date: Thu, 30 Jun 2022 16:07:56 +0200 Subject: [PATCH 4/4] [godot] More CI build script work. --- spine-godot/build/build-templates.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spine-godot/build/build-templates.sh b/spine-godot/build/build-templates.sh index aff1d0488..47b0128d4 100755 --- a/spine-godot/build/build-templates.sh +++ b/spine-godot/build/build-templates.sh @@ -31,6 +31,8 @@ if [ "$platform" = "windows" ]; then #generates windows_64_debug.exe and windows_64_release.exe scons platform=windows tools=no target=release custom_modules="../spine_godot" -j8 scons platform=windows tools=no target=release_debug custom_modules="../spine_godot" -j8 + cp bin/godot.windows.opt.64.exe bin/windows_64_release.exe + cp bin/godot.windows.opt.debug.64.exe bin/windows_64_debug.exe elif [ "$platform" = "macos" ]; then # --- macOS ---