Version: 2021.2
将 Apache Subversion (SVN) 用于 Unity Cloud Build
使用 Unity 开发者控制面板 (Developer Dashboard) 对 Unity Cloud Build 进行 Plastic 配置

Using the Unity Developer Dashboard to configure Cloud Build for Perforce

Unity Cloud Build 支持存储在 Perforce 代码仓库中的项目。

本主题介绍:

在控制面板上配置 Perforce

要配置 Cloud Build 以从 Perforce 代码仓库构建项目,请执行以下操作:

1.登录 Unity 开发者控制面板 (Developer Dashboard)。 2.在 Projects 页面上,选择您的项目。 3.在控制面板 Overview 窗口中的 Cloud Build 磁贴上,单击 OPEN CLOUD BUILD DASHBOARD。 4.在 Build History 窗口中,单击 Set up Cloud Build。 5. Choose which platform to build your game on. 6. In the Source Control window, click the MANUAL tab. 7. In the SCM URL field, enter the URL of your Perforce server in either of the following formats:

* 非 SSL:host:port
* SSL:ssl:host:port
  1. To connect to your repository, you must specify the URL to your Perforce server. For information on the format of the URL, see the URL syntax section below.
  2. From the SCM Types drop-down menu, select Perforce.
  3. Click the NEXT: ACCESS button. When Unity Cloud Build connects to the hosting site, it automatically detects whether your repository is public or private. If your repository is public, Cloud Build automatically connects to it and you can skip to Setting up a target build platform.
  4. On the Grant us access to your source control window, enter the Username and Password for your Perforce repository.
  5. Click NEXT: TARGET SETUP.

URL 语法

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

  • HTTPS
  • SSL

以下是有效 URL 的示例:

  • https://127.0.0.1:1667
  • ssl:127.0.0.1:167

设置目标编译平台

在控制面板中的 NEW BUILD TARGET: BASIC INFO 窗口上:

1.在 Target Label 字段中,输入编译名称。 2.从 Client Workspace 下拉菜单中,选择用于构建项目的工作空间。 3. If the root folder of your repository doesn’t contain your Assets and Project settings, in the Project Subfolder field, enter the URL of the folder that contains your Assets and Project settings. 4.从 Unity Version 下拉菜单中,选择用于编译项目的 Unity 版本。 5. If you do not want the Project to automatically build whenever your repository is updated, click the Auto-build toggle to disable this feature.

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

Android 凭据

In the Android SIGNING CREDS window, provide the following information:

  • __Bundle ID__,用于在设备上和 Google Play 应用商店中唯一标识您的应用程序。
  • 输入您的 Android 密钥库凭据或选择 Auto Generated Debug Keystore 来使用开发密钥库。有关 Android 密钥库的更多信息,请参阅 Android 密钥库系统 (Android Keystore System)

iOS 凭据

In the iOS SIGNING CREDS window, provide the following information:

  • __Bundle ID__,用于在设备上唯一标识您的应用程序。
  • 用于编译应用程序的 Xcode 版本。
  • 输入您的 iOS 凭据。有关 iOS 凭据的更多信息,请参阅发布到 iOS
将 Apache Subversion (SVN) 用于 Unity Cloud Build
使用 Unity 开发者控制面板 (Developer Dashboard) 对 Unity Cloud Build 进行 Plastic 配置
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961