superunitybuild / buildtool

A powerful automation tool for quickly and easily generating builds with Unity.
MIT License
1.21k stars 120 forks source link

Generate Build Constants Button #129

Open RobProductions opened 1 year ago

RobProductions commented 1 year ago

Hi, this is the first of a series of improvements I've been playing around with in my fork. This addition allows users to press a button to generate the BuildConstants file for a selected build without automatically matching their Editor settings (such as the build scenes, product name, etc.) to the selected build:

image

In order to create this commit, I cherry-picked the feature out of my dev branch and squashed it down. Coincidentally, this commit would've also added the scripting backend and "Generated" namespace to the BuildConstants file but I saw that it was already completed independently! It was a really similar implementation to how I was doing it, so I conformed to the approach used in the base project. I will also try and backport this and the other recent changes into my fork for easier cross-compatibility and git comparisons in the future.

As always, let me know if you have any suggestions or concerns and I'm happy to make any updates needed. Thanks!