如何为多个版本部署 CodePush 包? [英] How to deploy CodePush bundle for multiple versions?

查看:40
本文介绍了如何为多个版本部署 CodePush 包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读有关 targetBinary 标志的内容,并且我还阅读了 this 来自从事 CodePush 工作的 Microsoft 团队成员.

I have read about the targetBinary flag and I have also read this from a member of the Microsoft team working on CodePush.

我有 5.0.15.1.0 版本.

  • 5.0.1 相比,第二个版本具有原生差异
  • The second version has native differences when comparing to 5.0.1

如果版本 5.0.1 出现错误,我该如何修复它并仅针对此版本部署它?错误可能很严重,并不是每个人都会拥有最新版本的应用.

If a bug comes in for version 5.0.1, how do I fix it and deploy it for this version only? Bugs may be critical and not everyone will have the latest version of the app.

或者,该错误可能仅存在于特定版本中.

Or, the bug may only exist on a specific version.

是我唯一的选择:

  • 打开 Xcode &安卓工作室
  • 将我的捆绑版本/内部版本号从 5.1.0 更改为 5.0.1,然后进行更改,然后将我的编号改回?
  • Open Xcode & Android Studio
  • Change my Bundle Versions/Build Number from 5.1.0 to 5.0.1 and then make a change, then change my numbering back?

这似乎是一种冗长的版本更新方式.有没有更优雅的管理方式?

This seems like a long-winded way of updating a version. Is there a more elegant way of managing this?

推荐答案

目标二进制版本参数支持此方案的范围.这是一个有用的表格来指导您.

The target binary version param supports ranges for this scenario. Here's a helpful table to guide you.

Range Expression    Who gets the update
----------------    ----------------------
1.2.3               Only devices running the specific binary app store version 1.2.3 of your app
*                   Any device configured to consume updates from your CodePush app
1.2.x               Devices running major version 1, minor version 2 and any patch version of your app
1.2.3 - 1.2.7       Devices running any binary version between 1.2.3 (inclusive) and 1.2.7 (inclusive)
>=1.2.3 <1.2.7      Devices running any binary version between 1.2.3 (inclusive) and 1.2.7 (exclusive)
1.2                 Equivalent to >=1.2.0 <1.3.0
~1.2.3              Equivalent to >=1.2.3 <1.3.0
^1.2.3              Equivalent to >=1.2.3 <2.0.0

这篇关于如何为多个版本部署 CodePush 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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