I want to automate some of my Unity build process. I know that setting up automatic builds for platforms is relatively easy, just start Unity headless and tell it to build platform X!
This is fine for most things however I have some platform specific things for a given platform. For example I have achievements for Steam, GoG and my own thing if you are running truly standalone. I can easy switch between them by setting
#define STEAM_BUILD to make a build with steam features enabled. This is setup for each platform that I support.
At the moment I have to change the script manually and re-build every time. I want to make a build server do this all for me but how do I tell Unity to build my PC version with a certain
#define X set?