使用现有凭据
了解向 EAS Build 提供应用签名凭据的不同选项。
EAS Build 为你提供了两种如何为构建作业提供应用签名凭据的选项:
🌐 EAS Build gives you two options for how you can supply your build jobs with app signing credentials:
- 自动管理的凭证:EAS 可以托管你的应用签名凭证,并负责与具有必要权限的团队成员共享这些凭证。
- 本地凭证:你需要在项目中创建一个 credentials.json 文件,该文件指向你的密钥库(Android)和/或配置文件及分发证书(iOS),以及相关密码。在运行任何特定构建任务时,会从本地机器上传该文件,并在构建任务完成后予以删除。
无论你选择哪种选项,使用现有凭证的第一步是将其设置为 credentials.json 中的本地凭证。有关如何操作的更多信息,请参阅本地凭证指南的 credentials.json 部分。
🌐 Regardless of which option you choose, your first step for using your existing set of credentials is to set them up as local credentials in credentials.json. Refer to the credentials.json section of the local credentials guide for more information on how to do this.
一旦你的 credentials.json 文件配置完成,你可以运行 eas credentials,选择一个平台,然后选择 "Update credentials on Expo servers with values from credentials.json" 将它们上传,以便由 EAS 托管和管理(如果你愿意的话)。了解更多关于同步凭证的信息。
🌐 Once your credentials.json file is configured, you can run eas credentials, choose a platform, and then select "Update credentials on Expo servers with values from credentials.json" to upload them to be hosted and managed by EAS, if you would like. Read more about syncing credentials.