Building multiple, slightly different apps from the same code base

I need to build two slightly different versions of my app from the same code base.

Here’s how I currently manage it: any differences in the code are controlled by a parameter I set in a configuration file.  However, each version also has a different app icon.  Right now, I have two sets of Icon*.png files in a directory outside the project directory.  They are both complete sets of icon images and have the same filenames.  Before building, I set the parameter in my configuration file and copy the necessary set of icon images into the project directory.  With each setup, I need to build for iOS and Android. 

Here’s what I would like:   I’d like to automate all of this to produce the four files I need with one command: version1.apk & version2.apk (Android), version1.app & version2.app (iOS).  As a minimum, I would like everything to depend on a single custom key-value pair in config.lua or build.settings, but the best would be command line build that takes an argument, something like “make demoVersion”, but I think you need Corona Enterprise for command-line builds. Does anyone know if this is possible?