如何使用 Expo Orbit 启动更新
了解如何在审核工作流程中使用 Expo Orbit 打开更新。
Expo Orbit 是一款适用于 macOS 和 Windows 的应用,旨在加快从 EAS 安装和运行构建的速度。它让运行你的构建和更新变得像点击 在 Orbit 中打开 一样简单。
自动安装和启动更新是如何工作的?
当你启动更新时,Orbit 会查找与更新的运行时版本和目标平台匹配的最新开发版本。如果找到兼容的版本,更新将会自动安装到目标设备上,并通过指向该更新的深度链接启动。
🌐 When you launch an update, Orbit will look for the latest development build that matches the runtime version and target platform of the update. If a compatible build is found, the update will install automatically on the target device and launch with a deep link that points to the update.
如果你没有任何可用的开发版本,无论是因为它们都已过期、你尚未创建、你不使用 EAS Build,或者你正在本地构建应用,Orbit 都会提示你如何继续。在提示中点击 通过深度链接启动,如果你的目标设备上已经安装了兼容的开发版本,则可以打开更新。
🌐 If you don't have any development builds available, either because they have all expired, you haven't created one, you don't use EAS Build, or you are building your app locally, then Orbit will prompt you on how to proceed. Click Launch with deep link in the prompt to open the update if you already have a compatible development build installed on your target device.
先决条件
🌐 Prerequisites
- 在按照本指南的步骤操作之前,请先安装 Orbit 应用。你可以直接从 GitHub 发布页面 下载,或者查看 替代安装方法。
- 安装应用后,请从 设置 登录你的 Expo 账户。
使用 Expo Orbit 预览更新
🌐 Preview an update with Expo Orbit
使用 Expo Orbit 进行预览需要你已发布更新。如果你尚未发布更新,请在执行下一部分的步骤之前查看发布更新。
🌐 Previewing with Expo Orbit requires you to have an update published. If you haven't published an update, see Publish an update before following the steps in the next section.
安装并启动更新
🌐 Install and launch the update
注意:使用 Expo Orbit 推送更新不支持在真实的 iOS 设备上进行。它支持在 Android 设备/模拟器或 iOS 模拟器上使用。
发布更新后,请按照以下步骤在 Android 模拟器或 iOS 模拟器上打开它:
🌐 After the update is published, follow these steps to open it on an Android Emulator or iOS Simulator:
- 导航到你项目的 更新 选项卡。
- 选择你要预览的更新。
- 点击 预览。这将打开 预览 对话框。
- 在 使用 Orbit 打开 下,选择一个平台来启动更新。
- Orbit 将在选定的 Android 模拟器或 iOS 模拟器上安装并启动更新。
你现在可以使用 Expo Orbit 无缝启动和查看更新。
🌐 You can now seamlessly launch and review updates using Expo Orbit.