ドキュメント

Unity Gaming Services CLI

GitHub Repository

Unity Gaming Services CLI

Excludes

Restrict the scope of a Deployment Definition.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

Excludes are a way to restrict the scope of a Deployment Definition. Excludes only affect files or directories that it is responsible for. Excludes use glob pattern matching to match the contents of the
excludePaths
field and the files the Deployment Definition is responsible for.

Examples

Given the following file structure, there are multiple ways to exclude the contents of the
/Tests/
folder.
Assets/├── DeployableAssets/│ ├── CloudCode/│ │ ├── CloudCode.ddef│ │ ├── scriptA.js│ │ ├── scriptB.js│ │ └── Tests/│ │ ├── scriptA_test.js│ │ └── scriptB_test.js│ └── Remote Config/│ ├── RemoteConfig.ddef│ ├── configA.rc│ └── configB.rc

Glob Directory

A relative path can hide the whole
/Tests/
directory.
{ "name": "CloudeCode", "excludePaths": [ "**/Tests/**" ]}

File Path

The full path to the files.
{ "name": "CloudeCode", "excludePaths": [ "Assets/DeployableAssets/CloudCode/Tests/scriptA_test.js", "Assets/DeployableAssets/CloudCode/Tests/scriptB_test.js", ]}