Post Build, prepackaging .apk

How do I run a command from the command line after the compilation but before the packging of the .apk
So I can perform a task on the compiled files before they are placed into the .apk ?#

Been using POST BUILD in VS but this is after the .apk has been created.