Process Before Publishing a ready Kivy App in Playstore?

时光怂恿深爱的人放手 提交于 2021-01-01 13:53:53

问题


I already did buildozer android debug and have the .apk file installed and works fine, at least tested for one/two devices. This is also with the semi-default buildozer.spec, for example : the domain name is still org.test but with the name of the app is adjusted.

With this .apk file (after buildozer android debug process), is this the one that is ready to be uploaded to playstore? or there is still some other (technical) preparations?

I know that we may do beta test first before making it public. This is my first time coding an app with intention to publish it. Thanks in advance.


回答1:


You need to create a release version of your apk file before uploading to the Play Store. The debug version is just for testing on your phone. To create a release version and upload the app, you just have to follow these steps.

1. Create a Key

$ mkdir ~/keystores/
$ keytool -genkey -v -keystore ~/keystores/<your-new-key>.keystore -alias <your-key-alias> -keyalg RSA -keysize 2048 -validity 10000

2. Export some variables

$ export P4A_RELEASE_KEYSTORE=~/keystores/<your-new-key>.keystore
 $ export P4A_RELEASE_KEYSTORE_PASSWD=android
 $ export P4A_RELEASE_KEYALIAS_PASSWD=android
 $ export P4A_RELEASE_KEYALIAS=<your-key-alias>

3. Make release apk

 $ cd <your-project-folder>
 $ buildozer -v android release

4. Finally, optimize it

 $ ~/.buildozer/android/platform/android-sdk-20/build-tools/23.0.1/zipalign -v 4 ./bin/Your-App-0.1-release.apk ./bin/Your-App-0.1-release-optimized.apk


来源:https://stackoverflow.com/questions/48221320/process-before-publishing-a-ready-kivy-app-in-playstore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!