EAS 元数据

关于如何使用 EAS Metadata 从命令行自动化并维护你的应用商店展示的概览。


重要 EAS 元数据 目前处于测试阶段,可能会发生重大变更。

EAS 元数据 是来自 EAS(Expo 应用服务)的一个命令行工具,它可以帮助你自动化并维护你的应用商店信息。

在用户能够使用你的应用之前,你需要向多个应用商店提供大量信息。这些信息通常涉及与你的应用无关的复杂主题。在提供这些信息后,你必须启动一个冗长的审核流程。当审核员在你提供的信息中发现任何问题时,你需要重新开始这个流程。

🌐 You need to provide a lot of information to multiple app stores before your users can use your app. This information is often about complex topics that don't apply to your app. You have to start a lengthy review process after providing the information. When the reviewer finds any issues in the information you provided, you need to restart this process.

EAS 元数据使用 store.config.json 文件来提供信息,而无需在应用商店的多个表单中操作,也无需离开你的项目环境。结合内置的验证功能,你可以在任何审核之前立即获得关于你提供内容的反馈。

🌐 EAS Metadata uses a store.config.json file to provide information instead of going through multiple forms in the app store dashboards and without leaving your project environment. Combined with built-in validation, you get instant feedback about the content you provide, even before any review.

快速开始

🌐 Quick start

信息 以下 eas 命令需要 EAS CLI。有关更多信息,请参阅 如何安装 EAS CLI

你可以通过运行以下命令将存储配置推送到应用商店:

🌐 You can push the store config to the app stores by running the following command:

Terminal
eas metadata:push

使用 VS Code?安装 Expo Tools 扩展,以便在 store.config.json 文件中获得自动补齐、建议和警告功能。

主要特点

🌐 Key features

易于配置、更新或维护

🌐 Easy to configure, update, or maintain

你可以通过从现有应用创建新的或生成存储配置来开始使用 EAS Metadata。此存储配置让你可以在不离开项目环境的情况下快速更新应用商店信息。在将更改推送到应用商店之前,EAS Metadata 会检查可能导致应用被拒的常见问题。

🌐 You can start using EAS Metadata by creating a new or generating a store config from an existing app. This store config lets you quickly update the app store information without leaving your project environment. Before pushing the changes to the app stores, EAS Metadata looks for common pitfalls that might result in an app rejection.

通过验证加快反馈循环

🌐 Faster feedback loop with validation

EAS 元数据自带内置验证功能,即使在将任何内容发送到应用商店之前也会进行验证。这种验证有助于你更快地对信息进行迭代,而无需启动审核流程。相反,当所有内容都已提供且未检测到问题时,你可以开始审核流程。

🌐 EAS Metadata comes with built-in validation, even before anything is sent to the app stores. This validation helps you iterate faster over the information without starting a review. Instead, you can begin the review process when everything is provided, and no issues are detected.

确保安装 VS Code Expo 工具扩展,以便为 store.config.json 文件提供自动补齐、建议和警告。

可通过动态存储配置进行扩展

🌐 Extensible with dynamic store config

EAS 元数据还支持更动态的存储配置,而不仅仅使用 JSON 文件。这个动态存储配置允许你从其他地方获取信息,比如外部服务。通过异步函数,适应 EAS 元数据以符合你偏好的工作流程没有限制。

🌐 EAS Metadata also supports a more dynamic store config, instead of only using JSON files. This dynamic store config allows you to gather information from other places like external services. With asynchronous functions, there are no limits to adapting EAS Metadata to suit your preferred workflow.

何时使用 EAS 元数据

🌐 When to use EAS Metadata

场景建议
以编程方式管理应用商店信息
在审核前捕获元数据问题
协作进行商店呈现更新
管理 Google Play 商店列表
上传截图

常见问题

🌐 Frequently asked questions (FAQ)

我可以在 Google Play 商店使用 EAS 元数据吗?

我们致力于 EAS 元数据,并将随着时间的推移扩展其功能。这也意味着并非所有功能都已在 EAS 元数据中实现。谷歌 Play 商店是目前尚未实现的功能之一。

🌐 We are committed to EAS Metadata and will expand functionality over time. This also means that not all functionality is implemented in EAS Metadata. The Google Play Store is one of those features currently not implemented.

请参阅存储配置模式以了解所有现有功能。

🌐 See the store config schema for all existing functionality.

我如何使用不受支持的应用商店功能?

EAS 元数据只会将你的存储配置数据发送到应用商店。它不会阻止你使用应用商店仪表板,如果你需要 EAS 元数据尚未覆盖的功能。

🌐 EAS Metadata only sends the data from your store config to the app stores. It does not block you from using the app store dashboards if you need a feature that EAS Metadata does not cover yet.

在使用 EAS Metadata 并在应用商店控制面板中编辑内容时,请确保在进行这些更改后运行 eas metadata:pull。如果不更新本地存储配置,EAS Metadata 在推送到应用商店时可能会覆盖你的更改。

🌐 When using EAS Metadata and editing something in the app store dashboards, make sure to run eas metadata:pull after these changes. Without updating your local store config, EAS Metadata might overwrite your changes when pushing to the app stores.

我如何在受限的应用商店账户中使用 EAS 元数据?

在 EAS Metadata 访问信息之前,你需要通过应用商店进行身份验证。如果你正在处理大型企业账户,你可能没有权限使用 EAS Metadata 的所有功能。在这些情况下,你仍然可以使用 EAS Metadata,但由于安全限制,通常会更加困难。

🌐 You'll need to authenticate with the app store before EAS Metadata can access the information. If you are working with a large corporate account, you might not have permission to use all functionality of EAS Metadata. While you can use EAS Metadata in these cases, it's often more challenging due to the security restrictions.

开始使用

🌐 Get started

介绍

将 EAS 元数据添加到新项目,或从现有应用生成存储配置。

自定义存储配置

自定义存储配置以将 EAS 元数据适配到你首选的工作流程。

存储配置架构

探索 EAS 元数据提供的所有可配置选项。