使用 EAS Workflows 创建开发版本
了解如何使用 EAS Workflows 创建开发版本。
开发版本 是包含 Expo 开发者工具的项目专用构建。这类构建将所有本地依赖包含在项目中,使你能够在模拟器、模拟器或实体设备上运行类似生产环境的项目构建。此工作流程允许你为每个平台以及实体设备、Android 模拟器和 iOS 模拟器创建开发版本,你的团队可以通过 eas build:dev 进行访问。

Expo 金色工作流程:自动化开发构建的创建
开始使用
🌐 Get started
2 requirements
2 requirements
1.
设置你的环境
要开始,你需要配置你的项目和设备以构建和运行开发版本。请通过以下指南了解如何为开发版本设置你的环境:
Android 设备设置
准备好你的项目以进行开发构建。
Android 模拟器设置
准备好你的项目以进行开发构建。
iOS 设备设置
准备好你的项目以进行开发构建。
iOS 模拟器设置
准备好你的项目以进行开发构建。
2.
创建构建配置
在配置好你的项目和设备后,将以下构建配置添加到你的 eas.json 文件中。
eas.json
{ "build": { "development": { "developmentClient": true, "distribution": "internal" }, "development-simulator": { "developmentClient": true, "distribution": "internal", "ios": { "simulator": true } } } }
以下工作流程为每个平台以及物理设备、Android 模拟器和 iOS 模拟器创建构建。它们将并行运行。
🌐 The following workflow creates a build for each platform and for both physical devices, Android emulators, and iOS simulators. They all will run in parallel.
.eas/workflows/create-development-builds.yml
name: Create development builds jobs: android_development_build: name: Build Android type: build params: platform: android profile: development ios_device_development_build: name: Build iOS device type: build params: platform: ios profile: development ios_simulator_development_build: name: Build iOS simulator type: build params: platform: ios profile: development-simulator
使用以下命令运行上述工作流程:
🌐 Run the above workflow with:
Terminal
- eas workflow:run .eas/workflows/create-development-builds.yml