I use an automatic service to do that, using the default settings. I don't really know how to produce an apk otherwise.