問題描述
我已經做了 buildozer android debug
并安裝了 .apk
文件并且工作正常,至少測試了一/兩個設備.這也是與半默認的buildozer.spec
,例如:域名仍然是org.test
,但與應用程序的名稱進行了調整.
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.
有了這個 .apk
文件(在 buildozer android debug
過程之后),是這是準備上傳到 Playstore 的嗎?或者有還有一些其他(技術)準備工作嗎?
With this
.apk
file (afterbuildozer android debug
process), is this the one that is ready to be uploaded to playstore? or there is still some other (technical) preparations?
我知道我們可能會在公開之前先進行 beta 測試.這是我第一次編寫一個打算發布它的應用程序.提前致謝.
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.
推薦答案
在上傳到 Play 商店之前,您需要創建一個 release
版本的 apk 文件.debug
版本僅用于在您的手機上進行測試.要創建 release
版本并上傳應用程序,您只需按照以下步驟操作.
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.導出一些變量
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.制作發布apk
$ cd <your-project-folder>
$ buildozer -v android release
4.最后優化一下
$ ~/.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
這篇關于在 Playstore 中發布現成的 Kivy 應用程序之前的流程?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!