An apk is just a ZIP file, as you yourself were saying. So if you want to build it all via bash scripts, feel free.
https://github.com/HemanthJabalpuri/AndroidExplorer
The problem is that there are bazillion of frameworks doing shit using Gradle plugins.
Of course things are simpler if you restrict yourself to 10% of the functionality.