Skip to content

Commit

Permalink
NEW: Maya2022 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ziriax committed Apr 20, 2021
1 parent 1fb36b3 commit 3d7ba8e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
6 changes: 5 additions & 1 deletion windows_build_release.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@echo off

call windows_create_vs_project.bat %1
if errorlevel 1 goto :fail

Expand All @@ -7,7 +9,9 @@ if errorlevel 1 goto :fail
xcopy /s /e /y build\%1\redist\*.* build\redist\
if errorlevel 1 goto :fail

exit
if "%2"=="AUTO" (
exit
)

:fail
echo *** FAILURE ***
17 changes: 11 additions & 6 deletions windows_build_releases.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,28 @@ cd /d %~dp0
FOR /F "tokens=*" %%g IN ('git tag -l --points-at HEAD') do (SET GIT_TAG=%%g)
FOR /F "tokens=*" %%g IN ('git rev-parse --short HEAD') do (SET GIT_REV=%%g)

set ZIP_PATH=build\maya2gltf_%GIT_TAG%_%GIT_REV%.zip
ECHO GIT_TAG = %GIT_TAG%
ECHO GIT_REV = %GIT_REV%
set ZIP_PATH=%~dp0build\maya2gltf_%GIT_TAG%_%GIT_REV%.zip
if exist %ZIP_PATH% (del %ZIP_PATH%)

echo Creating release %ZIP_PATH%

start "Maya2glTF_build_2017" call windows_build_release 2017
start "Maya2glTF_build_2018" call windows_build_release 2018
start "Maya2glTF_build_2019" call windows_build_release 2019
start "Maya2glTF_build_2020" call windows_build_release 2020
start "Maya2glTF_build_2017" call windows_build_release 2017 AUTO
start "Maya2glTF_build_2018" call windows_build_release 2018 AUTO
start "Maya2glTF_build_2019" call windows_build_release 2019 AUTO
start "Maya2glTF_build_2020" call windows_build_release 2020 AUTO
start "Maya2glTF_build_2022" call windows_build_release 2022 AUTO

:loop
echo Waiting for build processes to finish...
timeout /t 10 >nul
tasklist /v /fi "imagename eq cmd.exe" /fo csv | findstr /i "Maya2glTF_build" >nul && goto :loop

pushd build
echo Creating release ZIP file...
cmake -E tar cfv %ZIP_PATH% --format=zip build\redist
cmake -E tar cfv %ZIP_PATH% --format=zip redist
popd

:done

Expand Down

0 comments on commit 3d7ba8e

Please sign in to comment.