forked from jd-cg/Unreal-Custom-Camera
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuickBuild.bat
More file actions
61 lines (51 loc) · 1.75 KB
/
QuickBuild.bat
File metadata and controls
61 lines (51 loc) · 1.75 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
55
56
57
58
59
60
61
@echo off
REM ============================================
REM Quick Build Script for Asymmetric Camera Plugin
REM ============================================
setlocal enabledelayedexpansion
echo ============================================
echo Quick Build - Asymmetric Camera Plugin
echo ============================================
echo.
REM Auto-detect UE5 Path
set "UE5_PATH="
if exist "D:\Ue\UE\UE_5.4\Engine\Build\BatchFiles\Build.bat" (
set "UE5_PATH=D:\Ue\UE\UE_5.4"
) else if exist "C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat" (
set "UE5_PATH=C:\Program Files\Epic Games\UE_5.4"
) else if exist "D:\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat" (
set "UE5_PATH=D:\Epic Games\UE_5.4"
) else if exist "C:\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat" (
set "UE5_PATH=C:\Epic Games\UE_5.4"
) else (
echo ERROR: Could not find Unreal Engine 5.4
echo Please edit this script and set UE5_PATH manually
pause
exit /b 1
)
echo Using UE5 from: %UE5_PATH%
echo.
REM Project settings
set "PROJECT_ROOT=%~dp0"
set "PROJECT_NAME=MyCustomCam"
set "PROJECT_FILE=%PROJECT_ROOT%%PROJECT_NAME%.uproject"
echo Building %PROJECT_NAME%Editor (Development)...
echo.
call "%UE5_PATH%\Engine\Build\BatchFiles\Build.bat" %PROJECT_NAME%Editor Win64 Development -Project="%PROJECT_FILE%" -WaitMutex
if %ERRORLEVEL% NEQ 0 (
echo.
echo ============================================
echo BUILD FAILED
echo ============================================
pause
exit /b 1
)
echo.
echo ============================================
echo BUILD SUCCESSFUL!
echo ============================================
echo.
echo Plugin compiled successfully.
echo You can now open the project in Unreal Editor.
echo.
pause