diff --git a/Scripts/BuildEditor-Windows.bat b/Scripts/BuildEditor-Windows.bat new file mode 100644 index 0000000..15a1ca8 --- /dev/null +++ b/Scripts/BuildEditor-Windows.bat @@ -0,0 +1,19 @@ +@echo off +setlocal + +set "PROJECT_DIR=%~dp0.." +set "PROJECT_FILE=%PROJECT_DIR%\AgrarianGame.uproject" +set "UE_ROOT=C:\Program Files\Epic Games\UE_5.7" +set "BUILD_BAT=%UE_ROOT%\Engine\Build\BatchFiles\Build.bat" + +if not exist "%BUILD_BAT%" ( + echo Unreal Engine 5.7 was not found at: + echo %UE_ROOT% + echo. + echo Edit UE_ROOT in this script if your engine is installed somewhere else. + exit /b 1 +) + +echo Building AgrarianGameEditor with UnrealBuildTool... +call "%BUILD_BAT%" AgrarianGameEditor Win64 Development -Project="%PROJECT_FILE%" -WaitMutex -architecture=x64 +exit /b %ERRORLEVEL%