Skip to content

Instantly share code, notes, and snippets.

@cartzhang
Forked from drewsberry/UE4-build.bat
Created August 2, 2019 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cartzhang/387a5bcd9ba9a425ec158f439d13a10c to your computer and use it in GitHub Desktop.
Save cartzhang/387a5bcd9ba9a425ec158f439d13a10c to your computer and use it in GitHub Desktop.
UE4 Windows command line building
:: Build client
RunUAT BuildCookRun -project="full_path.uproject"^
-noP4 -platform=Win64^
-clientconfig=Development -serverconfig=Development^
-cook -allmaps -build -stage^
-pak -archive -archivedirectory="Output Directory"
:: Cook client
RunUAT BuildCookRun -project="full_project_path_and_project_name".uproject^
-noP4 -platform=Win64^
-clientconfig=Development -serverconfig=Development^
-cook -allmaps -NoCompile -stage^
-pak -archive -archivedirectory="Output Directory"
:: Build server
RunUAT BuildCookRun -project="full_project_path_and_project_name".uproject^
-noP4 -platform=Win64^
-clientconfig=Development -serverconfig=Development^
-cook -server -serverplatform=Win64 -noclient -build -stage^
-pak -archive -archivedirectory="Output Directory"
:: Cook server
RunUAT BuildCookRun -project="full_project_path_and_project_name".uproject^
-noP4 -platform=Win64^
-clientconfig=Development -serverconfig=Development^
-cook -server -serverplatform=Win64 -noclient -NoCompile -stage^
-pak -archive -archivedirectory="Output Directory"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment