首页指南参考教程

回滚

将分支回滚到以前的更新或嵌入式更新。


适用于 SDK 50 及更高版本 (expo-updates >= 0.23.0)。

EAS 更新支持两种类型的回滚:

¥There are two types of rollbacks supported by EAS Update:

  • 回滚到之前发布的更新。

    ¥Roll back to a previously-published update.

  • 回滚到构建中嵌入的更新。

    ¥Roll back to the update embedded in the build.

开始回滚

¥Start a rollback

要开始回滚,请确保你安装了 EAS CLI 版本 5.9.0 或更高版本。然后,运行以下命令:

¥To start a rollback, ensure you have EAS CLI version 5.9.0 or above installed. Then, run the following command:

Terminal
eas update:rollback

在终端中,交互式指南将帮助你选择回滚类型并执行回滚。

¥In the terminal, an interactive guide will assist you in selecting the type of rollback and doing the rollback.

回滚到之前发布的更新

¥Rolling back to a previously-published update

上述命令重新发布之前发布的更新,以便在功能上将客户端回滚到该更新。

¥The above command re-publishes a previously-published update to functionally roll back clients to that update.

回滚到构建中嵌入的更新

¥Rolling back to the update embedded in the build

上述命令指示客户端运行构建中嵌入的更新。

¥The above command instructs the client to run the update embedded in the build.

回滚后发布

¥Publishing after the rollback

回滚后再次发布时,所有客户端都将收到新的更新。

¥Upon publishing again after a rollback, all clients will receive the new update.

Expo 中文网 - 粤ICP备13048890号