EAS 教程:介绍

介绍使用 Expo 应用服务 (EAS) 构建 Android 和 iOS 应用的教程,其中涵盖构建、更新和提交工作流程。


关于本教程

🌐 About this tutorial

本教程将使你熟练掌握 Expo Application Services (EAS) 的核心服务:构建提交更新。完成本教程后,你将知道如何为个人和团队项目建立专业的移动持续集成 (CI)/持续开发 (CD) 流程。

🌐 This tutorial will give you proficiency with Expo Application Services (EAS) core services: Build, Submit, and Update. When you complete the tutorial, you will know how to set up a professional mobile Continuous Integration (CI)/Continuous Development (CD) pipeline for your individual and team projects.

本教程涵盖以下主题:

🌐 This tutorial covers the following topics:

  • 使用 EAS Build 创建并安装开发版本,然后在设备、模拟器或模拟器上运行它。
  • 体验使用开发构建而不是 Expo Go 的好处。
  • 实现与团队或外部利益相关者共享开发构建的工作流程。
  • 自动增加应用构建版本。
  • 在一台设备上同时安装不同的应用变体,例如开发版和预览版。
  • 利用 EAS 更新在开发阶段快速创建和部署更新。
  • 通过与 GitHub 存储库集成来自动化构建过程。

这些主题将为我们提供有效使用 EAS 以及在需要时处理更高级主题所需的基础。

🌐 These topics will give us the foundation needed to use EAS effectively and to approach more advanced topics when needed.

先决条件

🌐 Prerequisites

本教程是实用操作型的,设计为大约两小时内可以完成。你需要一个已有的 Expo 项目,以便跟随教程在本地计算机上进行设置。选项包括:

🌐 This tutorial is hands-on and designed to be completed in about two hours. You will need an existing Expo project to follow along and set it up locally on your machine. Options include:

  • 继续使用我们前一教程中的 Sticker Smash 应用。如果是新用户,请从 GitHub 下载。
  • 开始一个新的项目,使用 npx create-expo-app
  • 使用一个纯 React Native 项目。确保已安装 expo 包,你可以通过自动手动方式安装。

工具

🌐 Tools

Expo Orbit 可在 macOS 和 Windows 上一键管理和发布构建。

如果你想在本地机器上同时安装和运行构建,可以使用 Android 模拟器或 iOS 模拟器。要进行设置,请参见以下内容:

🌐 If you want to install and run the build locally on your machine simultaneously, you can use Android Emulator or iOS Simulator. To set them up, see the following:

下一步

🌐 Next step

在本地设置好 Expo 项目后,我们已经准备好开始这段旅程。在下一章中,我们来学习如何使用 EAS Build 创建你的第一个构建。

🌐 We're ready for this journey after setting up an Expo project locally. In the next chapter, let's learn how to create your first build with EAS Build.

开始

让我们先配置一个开发版本。