Unity-Technologies / ProjectAuditor

Project Auditor is an experimental static analysis tool for Unity Projects.
Other
806 stars 66 forks source link

Fix creation of last BuildReport asset after build #74

Closed mtrive closed 2 years ago

mtrive commented 2 years ago

Currently Project Auditor includes the last BuildReport as part of the analysis report. It is also supposed to update the BuildReport after each build. Unfortunately, this does not work well since the creation of the BuildReport asset relies on the OnPostprocessBuild callback. The problem with this callback is that the Library/LastBuild.buildreport file is not created yet when OnPostprocessBuild is executed. The other problem is that the UI does not inform the user that the report has been updated.

With this PR we are changing the behaviour so that: