Please scratch my previous message, the recommended way would be to make use of the config command.
The best way is to define a new property inside your app.json file, for example:
Code:
{
//...
"afterBuild": "run" // The name of this property is arbitrary, choose whatever suits you best
//...
}
This will be accessible on your -after-build target as ${app.afterBuild}.
Whenever you want to change the value of this property for a given build, you can use the "config" command together with the "then" operator:
Code:
> sencha config -prop app.afterBuild=release then app build
Of course, you can put this on a simple bash script to just run a single command (i.e.: ./build-release)