-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathBuild_5.bat
More file actions
54 lines (43 loc) · 2.26 KB
/
Build_5.bat
File metadata and controls
54 lines (43 loc) · 2.26 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@echo off
setlocal EnableDelayedExpansion
REM The following builds the plugin for
REM - Unreal 5.4
REM - Unreal 5.5
REM - Unreal 5.6
REM Escape character for ANSI codes
for /F %%a in ('echo prompt $E ^| cmd') do set "ESC=%%a"
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_1.0.4_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" (
echo %ESC%[32m=== 5.3 ===%ESC%[0m
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_1.0.4_UE5.3\ueGear" -Rocket -VS2022 || echo Failed to find Unreal 5.3
)
REM Build 5.4
if exist "C:\Program Files\Epic Games\UE_5.4" (
echo %ESC%[32m=== 5.4 ===%ESC%[0m
call "C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin="!rootPath!\Plugins\ueGear\ueGear.uplugin" -Package="!rootPath!\Package\ueGear_1.0.4_UE5.4\ueGear" -Rocket -VS2022 || echo Failed to find Unreal 5.4
)
REM Build 5.5
if exist "C:\Program Files\Epic Games\UE_5.5" (
echo %ESC%[32m=== 5.5 ===%ESC%[0m
call "C:\Program Files\Epic Games\UE_5.5\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin="!rootPath!\Plugins\ueGear\ueGear.uplugin" -Package="!rootPath!\Package\ueGear_1.0.4_UE5.5\ueGear" -Rocket -VS2022 || echo Failed to find Unreal 5.5
)
REM Build 5.6
if exist "C:\Program Files\Epic Games\UE_5.6" (
echo %ESC%[32m=== 5.6 ===%ESC%[0m
call "C:\Program Files\Epic Games\UE_5.6\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin="!rootPath!\Plugins\ueGear\ueGear.uplugin" -Package="!rootPath!\Package\ueGear_1.0.4_UE5.6\ueGear" -Rocket -VS2022 || echo Failed to find Unreal 5.6
)
) else (
echo This script is designed for Windows only.
)
endlocal
pause