一键导入
eas-build
Expo Application Services cloud build configuration for TV app APK and IPA generation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Expo Application Services cloud build configuration for TV app APK and IPA generation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Template repo file structure: where screens, navigation, theme, data, and platform entries live in the monorepo
Android TV build and D-pad QA using Android CLI first, with bounded Gradle and ADB fallbacks
Expo TV configuration: app.json plugins, prebuild settings, platform-specific config for react-native-tvos
Fire TV leanback manifest configuration: banner icons, LEANBACK_LAUNCHER intent filter, TV-specific Android settings
Gradle build commands: assembleDebug, assembleRelease, APK output paths, and emulator installation
Fire TV Vega OS (Kepler) build system: npx kepler build, Vega app structure, platform-specific components
| name | eas-build |
| description | Expo Application Services cloud build configuration for TV app APK and IPA generation |
| applies_to | ["phase_eas_build"] |
| load_when | producing signed artifacts via EAS, or local builds aren't sufficient |
Local builds are great for fast iteration. EAS builds are required for: signed artifacts, builds reproducible in CI, and store submission. The TV story on EAS is the same as mobile with one extra: the
EXPO_TVenv var per profile.
In eas.json:
{
"cli": { "version": ">= 7.0.0" },
"build": {
"preview-tv-android": {
"extends": "preview",
"env": { "EXPO_TV": "1" },
"android": { "buildType": "apk" },
"distribution": "internal"
},
"preview-tv-firetv": {
"extends": "preview-tv-android",
"env": { "EXPO_TV": "1" }
},
"preview-tv-ios": {
"extends": "preview",
"env": { "EXPO_TV": "1" },
"ios": {
"simulator": false,
"image": "latest"
},
"distribution": "internal"
},
"production-tv-android": {
"env": { "EXPO_TV": "1" },
"android": { "buildType": "app-bundle" },
"distribution": "store"
},
"production-tv-ios": {
"env": { "EXPO_TV": "1" },
"ios": { "simulator": false },
"distribution": "store"
}
}
}
Why two Android profiles? Fire TV and Android TV produce the same APK technically, but Fire TV gets distributed via the Amazon Appstore and Android TV via Google Play. The profiles differ in store metadata, not in the build. Keep them separate so submission later is clean.
# From apps/expo-multi-tv/
eas build --profile preview-tv-android --platform android
eas build --profile preview-tv-ios --platform ios
The eas_build tool wraps these. Each build is 10–25 min on EAS infra. Don't wait synchronously in the harness — kick it off, return the build ID, poll status, or use webhooks.
EAS doesn't currently support Vega. Vega builds go through Amazon's Vega CLI / Kepler toolchain. The vega_build tool handles it. EAS profiles in eas.json are for the Expo app only.
"simulator": true produces a build runnable in the tvOS Simulator (.tar.gz with .app inside). Fastest, no Apple Developer account needed."simulator": false produces a .ipa runnable on a real Apple TV or for TestFlight. Requires Apple Developer membership and provisioning.For the harness:
On first build, EAS prompts for credentials:
The harness should not prompt interactively in v1. Either:
EAS builds finish on Anthropic's — sorry, Expo's — servers. Get artifacts via:
eas build:list --status finished --json --limit 1
Or via the API. The eas_build tool downloads the artifact URL and saves to out/<run_id>/artifacts/.
| Symptom | Cause | Fix |
|---|---|---|
| Build fails: "Plugin not found" | @react-native-tvos/config-tv not in deps | Add to the workspace, commit, retry |
| Build succeeds but app is a phone app | EXPO_TV env var missing from profile | Add "env": { "EXPO_TV": "1" } |
| iOS build fails: "no provisioning profile" | Credentials not configured | Run eas credentials once, then retry |
| Android build fails: "keystore not found" | Keystore deleted from EAS or never generated | eas credentials to regenerate, or upload an existing keystore |
| Long queue times | Free tier or busy infra | Either accept it, or use a paid plan |
| Build times out | Workspaces install loop, or a native dep needs a slow native build | Investigate logs; sometimes a metro.config.js issue |
EAS integrates with CI via the EAS CLI. Most teams set up:
main → preview build for both platforms.The harness produces an EAS-ready repo. Wiring it into CI is the user's next step.
EAS is metered. Free tier covers small teams; busier projects need a paid plan. A typical harness run with production-tv-android + production-tv-ios + preview-tv-firetv = 3 builds. Multiply by users / iterations.
For dev runs, prefer local builds. On Android, prebuild with Expo, compile with the Gradle wrapper, and deploy with Android CLI. Use EAS only when you need a signed or distributable artifact.
| Need | Use |
|---|---|
| Run on simulator/emulator | Local build; Android CLI for Android deployment |
| Run on a real Apple TV for the first time | EAS preview-tv-ios (device, internal) |
| Run on a real Fire TV / Android TV for the first time | Local Gradle build + android run is usually faster |
| Signed APK for sharing | EAS preview-tv-android |
| Store submission | EAS production-* |
| Vega artifact | vega_build tool, not EAS |
EXPO_TV in production profiles. Same symptom as forgetting it locally — phone app on a TV.