How to customize unreal build system

I’ve configured Unreal Frontend to do Shipping compile, build and package of our project for LinuxServer and WindowsNoEditor at the same time. This pretty much works by itself given correct parameters under Project Launcher tab.

I end up with two folders under <project>/Saved/StagedBuilds/ – LinuxServer and WindowsNoEditor

I’d like to add several custom commands after – add Linux toolchain ‘strip’ on linux binary, delete *.pdb file from Windows binaries, fetch version number from external file, generate relevant manifests for Launchpad, create 7zip bundles, and FTP or SCP the files to a remote server.

How would I go about adding custom command(s) post build, in the UBT? Is changing the UnrealBuildTool the only option?

UBT isn’t responsible for building and packaging, AutomationTool doing it.

I believe you can add Your functionality before: Deploy or Package function in these scripts:
Engine\Source\Programs\AutomationTool\Linux\LinuxPlatform.Automation.cs
Engine\Source\Programs\AutomationTool\Win\WinPlatform.Automation.cs

Thanks for that!

I’ve gotten command line parameters out of UnrealFrontend logs, and ran AutomationToolLauncher.exe with those parameters – works perfectly. Easy to glue other non-standard bits before and after executing AutomationTool…

Cheers,

It would be good to see what you’re doing and how you’re doing it, just for posterity’s sake - sounds useful and like it took a bit of tinkering :slight_smile: