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

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

问题描述

我最近在 Play 商店推出了我的第一个 ionic 应用程序,现在我想发布更新版本.

我有 .keystore 文件及其密码,但我没有获得生成发布 apk 以更新我现有的 ionic 应用程序的步骤.

我希望得到帮助.谢谢

解决方案

从更改 android-versionCodeandroid-versionName(可选)和 version 开始 config.xml 中小部件标记中的属性.

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

$cordova 插件 rmcordova-plugin-console --save

构建您的发布版本:

$ cordova build --release android

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

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

<块引用>

例如,如果您使用 Crosswalk,您可能有多个适用于不同原生平台的 APK,并且必须分别对它们进行签名(对每个 APK 重复上述操作).

Zipalign 已签名的 APK:

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

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

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

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

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

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

解决方案

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

Build your release version:

$ cordova build --release android

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

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 your signed APK:

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

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

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

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

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

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