Version: 2020.3
Using the Unity Developer Dashboard to configure Cloud Build for Git
将 Apache Subversion (SVN) 用于 Unity Cloud Build

Using the Unity Developer Dashboard to configure Cloud Build for Mercurial

Cloud Build supports projects stored in Mercurial repositories. You can host your repository on Bitbucket or a private server.

要连接到代码仓库(Repository),Unity Cloud Build 需要您提供相应的访问凭据。这一要求适用于 Bitbucket 或其他地方托管的 Mercurial 代码仓库。

在控制面板中配置 Mercurial

1.登录 Unity 开发者控制面板 (Developer Dashboard)。 2.从 Projects 页面中,选择您的项目。 3.在左侧导航面板中,单击 Cloud Build > Config。 4.如果这是第一次配置 Cloud Build,您会看到 Build History 页面上显示 Cloud Build has not been set up for this project。单击 Set up Cloud Build 链接继续。 5.在 Source Control 窗口中,单击 Manual 选项卡。 6.在 SCM URL 字段中,输入 Mercurial 服务器的 URL。有关 URL 格式的信息,请参阅以下的 URL 语法部分。 7.从 SCM Type 下拉菜单中,选择 Mercurial。 7.单击 Next Access 按钮。

URL 语法

要连接到代码仓库,必须指定 Mercurial 服务器的 URL。您可以指定 URL 使用以下协议:

  • HTTPS

  • SSH

以下是 bitbucket 的 URL 示例:

  • https://github.com/youraccount/yourrepo

  • git@bitbucket.org:youraccount/yourrepo.git

请使用最适合您的格式。Unity Cloud Build 会自动将 URL 重写为所需的格式。

设置您的凭据

On your Mercurial server, create a username for Unity Cloud Build and assign a secure password. If your Mercurial host supports it, make this a read-only user account.

On the Grant us access to your source control window, enter your user name and password, and click Next: Target Setup.

控制面板授权窗口
控制面板授权窗口

设置目标编译平台

In the Target Setup window, select a build platform.

在开发者控制面板 (Developer Dashboard) 上的 NEW BUILD TARGET: BASIC INFO 窗口中:

1.在 Target Label 字段中,输入编译名称。

2.如果代码仓库的根文件夹未包含您的资源和项目设置,请在 Project Subfolder 字段中输入包含所需资源和项目设置的文件夹的 URL。

3.从 Unity Version 下拉菜单中,选择用于编译项目的 Unity 版本。

4.如果不希望每次更新代码仓库时便自动编译项目,请单击 Auto-build 切换开关以禁用此功能。

如果要针对 iOS 或 Android 平台进行编译,则下一步是输入编译的凭据。单击 Next: Credentials。对于所有其他平台,请单击 Next: Build 以完成配置并开始初始编译。

Android 凭据

On the SIGNING CREDS window supply the following information:

  • __Bundle ID__,用于在设备上和 Google Play 应用商店中唯一标识您的应用程序。

  • 输入您的 Android 密钥库凭据或选择 Auto Generated Debug Keystore 来使用开发密钥库。有关 Android 密钥库的更多信息,请参阅 Android 密钥库系统 (Android Keystore System)

iOS 凭据

On the iOS SIGNING CREDS window supply the following information:

  • Bundle ID,用于在设备上唯一标识您的应用程序。

  • 用于编译应用程序的 Xcode 版本。

  • 输入您的 iOS 凭据。有关 iOS 凭据的更多信息,请参阅发布到 iOS


2018–04–10 页面已发布

Using the Unity Developer Dashboard to configure Cloud Build for Git
将 Apache Subversion (SVN) 用于 Unity Cloud Build
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961