Skip to content

Commit cdcee67

Browse files
committed
Added support for UE version in build pipeline
1 parent 0d14015 commit cdcee67

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

Unreal/Environments/Blocks/package.bat

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@ set ROOT_DIR=%~dp0
55

66
set OutPath=%1
77
set ToolPath=%2
8+
set UEVer=%3
9+
10+
if "%UEVer%"=="" set "UEVer=4.18"
11+
12+
set "_ToolPath=%PROGRAMFILES%\Epic Games\UE_%UEVer%\Engine\Build\BatchFiles"
13+
if "%ToolPath%"=="" set ToolPath=%_ToolPath%
14+
if "%ToolPath%"=="""" set ToolPath=%_ToolPath%
815

9-
if "%ToolPath%"=="" set "ToolPath=%PROGRAMFILES%\Epic Games\UE_4.18\Engine\Build\BatchFiles"
1016
IF NOT EXIST "%ToolPath%" (
1117
echo "Unreal Engine build path %ToolPath% was not found"
1218
goto :failed
@@ -48,7 +54,7 @@ goto :done
4854

4955
:failed
5056
echo "Error occured while packaging"
51-
echo "Usage: package.bat <path\to\output> <path to Engine\Build\BatchFiles>"
57+
echo "Usage: package.bat <path\to\output> <path to Engine\Build\BatchFiles> <UE Version>"
5258
exit /b 1
5359

5460
:done

build_all_ue_projects.bat

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ REM Output folder where the builds would be stored
1111
set OutputPath=%3
1212
REM folder containing AirSim repo
1313
set AirSimPath=%4
14+
REM path for UE toolset
15+
set ToolPath=%5
1416

1517
REM set defaults if ars are not supplied
1618
if "%UnrealProjsPath%"=="" set "UnrealProjsPath=D:\vso\msresearch\Theseus"
@@ -29,7 +31,6 @@ if "%RebuildAirSim%"=="true" (
2931

3032
IF NOT EXIST "%OutputPath%" mkdir "%OutputPath%"
3133

32-
REM call:doOneProject "Warehouse"
3334
call:doOneProject "TalkingHeads"
3435
call:doOneProject "ZhangJiaJie"
3536
call:doOneProject "AirSimEnvNH"
@@ -40,10 +41,13 @@ call:doOneProject "Forest"
4041
call:doOneProject "Coastline"
4142
call:doOneProject "TrapCamera"
4243
call:doOneProject "CityEnviron"
44+
call:doOneProject "Warehouse"
45+
call:doOneProject "Plains" "" 4.19
4346

4447
goto :done
4548

4649
:doOneProject
50+
REM args: OutputPath ToolPath UEVer
4751
if "%~2"=="" (
4852
cd /D "%UnrealProjsPath%\%~1"
4953
) else (
@@ -56,7 +60,7 @@ robocopy "%AirSimPath%\Unreal\Environments\Blocks" . *.bat /njh /njs /ndl /np
5660
CALL update_from_git.bat "%AirSimPath%"
5761
if ERRORLEVEL 1 goto :failed
5862

59-
CALL package.bat "%OutputPath%"
63+
CALL package.bat "%OutputPath%" "%ToolPath%" %~3
6064
if ERRORLEVEL 1 goto :failed
6165

6266
goto :done

0 commit comments

Comments
 (0)