如何为多个版本部署CodePush包?

Dan*_*Dan 1 react-native code-push

我已阅读有关该targetBinary标志的内容,并且我还从致力于CodePush的Microsoft团队成员那里读到了这个内容.

我有版本5.0.15.1.0.

  • 与之相比,第二个版本具有原生差异 5.0.1

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

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

是我唯一的选择:

  • 打开Xcode和Android Studio
  • 将我的Bundle Versions/Build Number从更改5.1.05.0.1然后进行更改,然后更改我的编号?

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

小智 9

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

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
Run Code Online (Sandbox Code Playgroud)

  • @HaseebBurki 只需打开应用程序中心仪表板,然后禁用针对“*”的版本。然后发布新的 (2认同)

小智 6

您可以通过使用 target 标志-t和 appcenter-cli选择不同的版本来使用代码推送来定位特定版本

定位应用程序的所有版本: appcenter codepush release-react -a Org/MyApp -t '*'

应用程序的目标版本 5.0.1 版本: appcenter codepush release-react -a Org/MyApp -t '5.0.1'