When packaging a product which line of code gets called first?

Which bit of code gets called first when packaging. I’m using a newer compiler version than the engine officially supports, and want to enable it for packaging. Any tips on where to look first? I already have support for compiling the engine from the commandline in UBT . Just looking for what gets called first when packaging for Linux is started.

Hello fellow Arch Linux and UE4 user!

The first place to look is here:

https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Editor/MainFrame/Private/Frame/MainFrameActions.cpp#L485

That function is called when you click the “Package Project”>“Linux”>“Linux” button (or for any other platform). That function then assembles the command to start building, cooking, and packaging the project. If this is not the exact line you’re looking for, it should be a good place to start at least.

Hope this helps!