Unity Cloud Build 支持存储在 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
To connect to your repository, you must specify the URL to your Perforce server. You can specify the URL to use the https:// or SSL protocols.
以下是有效 URL 的示例:
在控制面板中的 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 以完成配置并开始初始编译。
In the Android SIGNING CREDS window, provide the following information:
In the iOS SIGNING CREDS window, provide the following information: