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:
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.