sttz / trimmer

An editor, build and player configuration framework for the Unity game engine.
MIT License
104 stars 8 forks source link

Add support for error callbacks #8

Closed JesseTG closed 3 years ago

JesseTG commented 3 years ago

This PR adds support and API documentation for an OnBuildError callback. It runs on all Options if and only if the build fails. If a particular OnBuildError callback throws an exception, it's swallowed by Debug.LogException so that other cleanup handlers still run.

sttz commented 3 years ago

Thanks, looks good!

sttz commented 3 years ago

Note that I decided to drop support for Unity before 2018.4. This allows to use BuildReport throughout, which contains all necessary information and errors and much more additional information for Options to use.

JesseTG commented 3 years ago

No complaints here.

Ah crap, I forgot to document it in the manual. You want me to go ahead and do that?