Call event when start Packaging project?

Hello!
Is it possible to somehow trigger an event in C++ or blueprints when the project build starts? Or is it possible to start packaging from code?