首页指南参考教程

发送无线更新

了解如何发送无线更新以向用户推送关键错误修复和改进。


你可以向用户发送包含关键错误修复和改进的无线更新。

¥You can send over-the-air updates containing critical bug fixes and improvements to your users.

开始使用

¥Get started

如果你之前发布过 previews 或创建过 build,则可能已经设置了更新并可以跳过此部分。

¥If you've published previews or created a build before, you may have already set up updates and can skip this section.

要设置更新,请运行以下 EAS 命令行接口 命令:

¥To set up updates, run the following EAS CLI command:

Terminal
eas update:configure

命令完成后,你需要进行新构建,然后才能继续下一部分。

¥After the command completes, you'll need to make new builds before continuing to the next section.

发送更新

¥Send an update

要发送更新,请运行以下 EAS 命令行接口 命令:

¥To send an update, run the following EAS CLI command:

Terminal
eas update --channel production

此命令将创建一个更新,并将其提供给配置为在 production 通道上接收更新的应用版本。此通道在 eas.json 中定义。

¥This command will create an update and make it available to builds of your app that are configured to receive updates on the production channel. This channel is defined in eas.json.

你可以通过强制关闭应用并重新打开两次来验证更新是否有效。更新应在第二次启动时应用。

¥You can verify the update works by force closing the app and reopening it two times. The update should be applied on the second launch.

Expo 中文网 - 粤ICP备13048890号