I've found myself having a couple of projects that need to be built in different ways according to where it is released. Already Google Play and Amazon APKs are different, but then some projects have demo versions and Steam releases.
I created a script called AgkBuild to help me build multiple releases of my games at once.
It can build for Windows, Linux, Android, and HTML5 (no Mac OSX) and allows for release-specific #includes/#inserts, including additional files, excluding media files, and more.
The project page can be found
here. There's an example project there, too.
This currently only works on Windows and requires AppGameKit Classic and Python 3.7+.
This is a personal tool that I'm making available for others to use. By using it, you understand and agree that you are doing so at your own risk and that I while I have done my best to prevent serious problems, I will not be held responsible for any that occur, including but not limited to loss of data.