如何在Google Play商店发布我现有的离线应用的更新版本? [英] How do i publish an updated version of my existing ionic app on google play store?

查看:204
本文介绍了如何在Google Play商店发布我现有的离线应用的更新版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在Play商店推出了我的第一款离子应用程序,现在我想发布更新版本。

I have recently launched my first ionic app on play store and now i want to publish a updated version.

我有.keystore文件和它的密码,但我没有得到步骤来生成发布apk来更新我现有的离子应用程序。

I have the .keystore file and its password with me but i am not getting the steps to generate the release apk to update my existing ionic app.

我希望有一个帮助。谢谢

I would appreciate a help. Thanks

推荐答案

首先更改 android-versionCode android-versionName (可选)和 version 属性。

Start with changing the android-versionCode, android-versionName (optional) and version attributes in the widget tag in your config.xml.

然后删除所有仅用于开发的插件,如控制台:

Then remove all plugins you only use for development, like console:

$ cordova plugin rm cordova-plugin-console --save

构建您的发布版本:

$ cordova build --release android

使用密钥库中的密钥签署您的发布版本。在下面的示例中,keystore位于项目的根目录中,但当然也可以定义另一个路径:

Sign your release build with the key from your keystore. In below example the keystore is in the root of your project, but of course it's also possible to define another path:

$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore projectnaam.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk PROJECTNAAM_KEY




如果您使用Crosswalk,则可能会针对不同的本地平台使用多个APK,并且需要单独对它们进行签名(对于每个APK,请重复上述步骤)。

If you use for example Crosswalk, you might have more than one APK for different native platforms and will have to sign them separately (repeat above for each APK).

Zipalign签名APK:

Zipalign your signed APK:

$ zipalign -v 4 platforms/android/build/outputs/apk/android-release-unsigned.apk platforms/android/build/outputs/apk/android-release.apk

最后上传 platforms / android / build / outputs / apk / android-release.apk 到Play商店并发布应用程序。

And finally upload platforms/android/build/outputs/apk/android-release.apk to the Play Store and publish the app.

之后,您可能需要为fu安装控制台插件进一步开发:

After that you might want to install console plugin for further development:

$ cordova plugin add cordova-plugin-console --save

这篇关于如何在Google Play商店发布我现有的离线应用的更新版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆