如何部署多个版本的CodePush捆绑包?

2024-03-01

我读过有关targetBinary旗帜和我也读过this https://stackoverflow.com/questions/34869548/codepush-how-to-deploy-to-multiple-build-versions-of-the-same-deployment-config来自从事 CodePush 工作的 Microsoft 团队成员。

我有版本5.0.1 and 5.1.0.

  • 与以下版本相比,第二个版本存在本地差异5.0.1

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

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

我唯一的选择是:

  • 打开 Xcode 和 Android Studio
  • 更改我的捆绑包版本/内部版本号5.1.0 to 5.0.1然后进行更改,然后将我的编号改回来?

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


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

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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何部署多个版本的CodePush捆绑包? 的相关文章

随机推荐