-
Notifications
You must be signed in to change notification settings - Fork 11
/
Build_5.bat
30 lines (24 loc) · 1.02 KB
/
Build_5.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo off
setlocal EnableDelayedExpansion
REM The following builds the plugin for
REM - Unreal 5.2
REM - Unreal 5.3
REM Check the operating system
if "%OS%"=="Windows_NT" (
echo Running on Windows
REM Get the current directory
set "rootPath=%CD%"
echo Current directory is: !rootPath!
REM Build 5.2
if exist "C:\Program Files\Epic Games\UE_5.2" (
call "C:\Program Files\Epic Games\UE_5.2\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin="!rootPath!\Plugins\ueGear\ueGear.uplugin" -Package="!rootPath!\Package\ueGear_0.5_UE5.2\ueGear" -Rocket -VS2019 || echo Failed to find Unreal 5.2
)
REM Build 5.3
if exist "C:\Program Files\Epic Games\UE_5.3" (
call "C:\Program Files\Epic Games\UE_5.3\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin="!rootPath!\Plugins\ueGear\ueGear.uplugin" -Package="!rootPath!\Package\ueGear_0.5_UE5.3\ueGear" -Rocket -VS2022 || echo Failed to find Unreal 5.3
)
) else (
echo This script is designed for Windows only.
)
endlocal
pause