|
13 | 13 | "version": { |
14 | 14 | "Major": 3, |
15 | 15 | "Minor": 2, |
16 | | - "Patch": 4 |
| 16 | + "Patch": 5 |
17 | 17 | }, |
18 | 18 | "releaseNotes": "[Full Changelog](https://github.com/Dinomite-Studios/unity-azure-pipelines-tasks/blob/master/Tasks/UnityBuild/UnityBuildV3/CHANGELOG.md)", |
19 | 19 | "minimumAgentVersion": "2.144.0", |
20 | 20 | "instanceNameFormat": "Unity Build $(buildTarget)", |
21 | | - "groups": [], |
22 | | - "inputs": [ |
| 21 | + "groups": [ |
23 | 22 | { |
24 | | - "name": "buildTarget", |
25 | | - "type": "pickList", |
26 | | - "label": "Build target", |
27 | | - "defaultValue": "standalone", |
28 | | - "helpMarkDown": "Build platform to build the Unity project for.", |
29 | | - "options": { |
30 | | - "standalone": "Standalone (agent-based)", |
31 | | - "Win": "Windows Standalone (32-bit)", |
32 | | - "Win64": "Windows Standalone (64-bit)", |
33 | | - "OSXUniversal": "macOS Standalone", |
34 | | - "Linux": "Linux Standalone (32-bit)", |
35 | | - "Linux64": "Linux Standalone (64-bit)", |
36 | | - "LinuxUniversal": "Linux Standalone (universal)", |
37 | | - "iOS": "iOS", |
38 | | - "Android": "Android", |
39 | | - "Web": "Web", |
40 | | - "WebStreamed": "Web Streamed", |
41 | | - "WebGL": "WebGL", |
42 | | - "XboxOne": "Xbox One", |
43 | | - "PS4": "PS4", |
44 | | - "WindowsStoreApps": "Windows Store Apps", |
45 | | - "Switch": "Switch", |
46 | | - "N3DS": "N3DS", |
47 | | - "tvOS": "tvOS" |
48 | | - } |
| 23 | + "name": "general", |
| 24 | + "displayName": "General", |
| 25 | + "isExpanded": true |
49 | 26 | }, |
| 27 | + { |
| 28 | + "name": "build", |
| 29 | + "displayName": "Build", |
| 30 | + "isExpanded": true |
| 31 | + }, |
| 32 | + { |
| 33 | + "name": "platform", |
| 34 | + "displayName": "Platform", |
| 35 | + "isExpanded": true |
| 36 | + } |
| 37 | + ], |
| 38 | + "inputs": [ |
50 | 39 | { |
51 | 40 | "name": "unityEditorsPathMode", |
52 | 41 | "type": "pickList", |
53 | 42 | "label": "Unity editors location", |
54 | 43 | "defaultValue": "default", |
55 | 44 | "helpMarkDown": "Define where to look for Unity installations on the agent.", |
| 45 | + "groupName": "general", |
56 | 46 | "options": { |
57 | 47 | "default": "Default (recommended)", |
58 | 48 | "environmentVariable": "Use UNITYHUB_EDITORS_FOLDER_LOCATION environment variable on agent", |
|
64 | 54 | "type": "string", |
65 | 55 | "label": "Editors folder location", |
66 | 56 | "defaultValue": "", |
| 57 | + "groupName": "general", |
67 | 58 | "required": true, |
68 | 59 | "visibleRule": "unityEditorsPathMode == specify", |
69 | 60 | "helpMarkDown": "Specify where to look for Unity Editor versions on the agent." |
70 | 61 | }, |
71 | | - { |
72 | | - "name": "unityProjectPath", |
73 | | - "type": "filePath", |
74 | | - "label": "Unity project path", |
75 | | - "defaultValue": "", |
76 | | - "required": false, |
77 | | - "helpMarkDown": "(Optional) Enter the directory path to the Unity project. If no value is entered, the root of the repository will be used." |
78 | | - }, |
79 | 62 | { |
80 | 63 | "name": "versionSelectionMode", |
81 | 64 | "type": "pickList", |
82 | | - "label": "Unity version to build with", |
83 | | - "required": true, |
84 | | - "helpMarkDown": "Select which Unity version to build the project with. You can either use the project's version or specify a version yourself.", |
| 65 | + "label": "Unity version", |
| 66 | + "groupName": "general", |
| 67 | + "required": false, |
| 68 | + "helpMarkDown": "Select which Unity version to run the task with.", |
85 | 69 | "defaultValue": "project", |
86 | 70 | "options": { |
87 | 71 | "project": "Project Version", |
|
92 | 76 | "name": "version", |
93 | 77 | "type": "string", |
94 | 78 | "label": "Version", |
| 79 | + "groupName": "general", |
95 | 80 | "defaultValue": "", |
96 | 81 | "required": true, |
97 | | - "helpMarkDown": "The Unity editor version to activate the license with, e.g. value: `2022.2.1f1`.", |
| 82 | + "helpMarkDown": "Select which Unity version to run the task with, e.g. value: `2022.2.1f1`.", |
98 | 83 | "visibleRule": "versionSelectionMode == specify" |
99 | 84 | }, |
| 85 | + { |
| 86 | + "name": "unityProjectPath", |
| 87 | + "type": "filePath", |
| 88 | + "label": "Unity project path", |
| 89 | + "groupName": "general", |
| 90 | + "defaultValue": "", |
| 91 | + "required": false, |
| 92 | + "helpMarkDown": "(Optional) Enter the path to the Unity project within the repository. If no value is entered, the root of the repository will be used." |
| 93 | + }, |
| 94 | + { |
| 95 | + "name": "buildTarget", |
| 96 | + "type": "pickList", |
| 97 | + "label": "Build target", |
| 98 | + "defaultValue": "standalone", |
| 99 | + "helpMarkDown": "Build platform to build the Unity project for.", |
| 100 | + "groupName": "build", |
| 101 | + "options": { |
| 102 | + "standalone": "Standalone (agent-based)", |
| 103 | + "Win": "Windows Standalone (32-bit)", |
| 104 | + "Win64": "Windows Standalone (64-bit)", |
| 105 | + "OSXUniversal": "macOS Standalone", |
| 106 | + "Linux": "Linux Standalone (32-bit)", |
| 107 | + "Linux64": "Linux Standalone (64-bit)", |
| 108 | + "LinuxUniversal": "Linux Standalone (universal)", |
| 109 | + "iOS": "iOS", |
| 110 | + "Android": "Android", |
| 111 | + "Web": "Web", |
| 112 | + "WebStreamed": "Web Streamed", |
| 113 | + "WebGL": "WebGL", |
| 114 | + "XboxOne": "Xbox One", |
| 115 | + "PS4": "PS4", |
| 116 | + "WindowsStoreApps": "Windows Store Apps", |
| 117 | + "Switch": "Switch", |
| 118 | + "N3DS": "N3DS", |
| 119 | + "tvOS": "tvOS", |
| 120 | + "visionos": "visionOS" |
| 121 | + } |
| 122 | + }, |
100 | 123 | { |
101 | 124 | "name": "buildScriptType", |
102 | 125 | "type": "radio", |
103 | 126 | "label": "Build script type", |
104 | 127 | "defaultValue": "default", |
105 | 128 | "helpMarkDown": "Build script type: Use `Default` to use a built-in simple script which will perform a build without additional options. Use `Existing` if you already have a build script in your source and only need to specify the method to execute on build. Or use `Inline` to define the script inline, please make sure it's valid C#.", |
| 129 | + "groupName": "build", |
106 | 130 | "options": { |
107 | 131 | "default": "Default", |
108 | 132 | "existing": "Existing", |
|
114 | 138 | "type": "filePath", |
115 | 139 | "helpMarkDown": "Specify the build output path relative to the repository root or fully qualified.", |
116 | 140 | "label": "Output path", |
| 141 | + "groupName": "build", |
117 | 142 | "required": true, |
118 | 143 | "defaultValue": "$(Build.BinariesDirectory)", |
119 | 144 | "visibleRule": "buildScriptType = default" |
|
122 | 147 | "name": "outputFileName", |
123 | 148 | "type": "string", |
124 | 149 | "label": "Output filename", |
| 150 | + "groupName": "build", |
125 | 151 | "helpMarkDown": "Enter the output filename to be used when constructing the platform-appropriate output. For instance, if you want the output to be 'thegame.exe' on Windows Standalone, enter 'thegame'", |
126 | 152 | "required": true, |
127 | | - "defaultValue": "drop" |
| 153 | + "defaultValue": "drop", |
| 154 | + "visibleRule": "buildScriptType = default" |
128 | 155 | }, |
129 | 156 | { |
130 | 157 | "name": "inlineBuildScript", |
131 | 158 | "type": "multiLine", |
132 | 159 | "label": "Inline build script", |
133 | 160 | "visibleRule": "buildScriptType = inline", |
134 | 161 | "required": true, |
| 162 | + "groupName": "build", |
135 | 163 | "defaultValue": "/* Write your C# build script here. Define a class and make sure to define a public static method to execute for the build. You'll want to verify your script actually works on your local computer.\n\nExample:\npublic class MyClass {\npublic static void PerformBuild() {\n...\n}\n}\n */", |
136 | 164 | "properties": { |
137 | 165 | "resizable": "true", |
|
144 | 172 | "name": "scriptExecuteMethod", |
145 | 173 | "type": "string", |
146 | 174 | "label": "Build script execute method", |
| 175 | + "groupName": "build", |
147 | 176 | "visibleRule": "buildScriptType = inline || buildScriptType = existing", |
148 | 177 | "required": true, |
149 | 178 | "defaultValue": "", |
|
153 | 182 | "name": "additionalCmdArgs", |
154 | 183 | "type": "string", |
155 | 184 | "label": "Command line arguments", |
| 185 | + "groupName": "build", |
156 | 186 | "defaultValue": "", |
157 | 187 | "helpMarkDown": "(Optional) Specify additional command line arguments, see the [documentation](https://docs.unity3d.com/Manual/CommandLineArguments.html) for more info." |
| 188 | + }, |
| 189 | + { |
| 190 | + "name": "signAppBundle", |
| 191 | + "type": "boolean", |
| 192 | + "label": "Sign APK / app bundle", |
| 193 | + "groupName": "platform", |
| 194 | + "defaultValue": true, |
| 195 | + "required": false, |
| 196 | + "helpMarkDown": "Whether to sign the produced APK / app bundle using a custom keystore.", |
| 197 | + "visibleRule": "buildTarget == Android && buildScriptType == default" |
| 198 | + }, |
| 199 | + { |
| 200 | + "name": "keystoreName", |
| 201 | + "type": "filePath", |
| 202 | + "helpMarkDown": "Android keystore name / file path.", |
| 203 | + "label": "Keystore file path", |
| 204 | + "groupName": "platform", |
| 205 | + "required": true, |
| 206 | + "defaultValue": "", |
| 207 | + "visibleRule": "buildTarget == Android && signAppBundle == true && buildScriptType == default" |
| 208 | + }, |
| 209 | + { |
| 210 | + "name": "keystorePass", |
| 211 | + "type": "string", |
| 212 | + "label": "Keystore password", |
| 213 | + "groupName": "platform", |
| 214 | + "helpMarkDown": "Android keystore password.", |
| 215 | + "required": true, |
| 216 | + "defaultValue": "", |
| 217 | + "visibleRule": "buildTarget == Android && signAppBundle == true && buildScriptType == default" |
| 218 | + }, |
| 219 | + { |
| 220 | + "name": "keystoreAliasName", |
| 221 | + "type": "string", |
| 222 | + "label": "Keystore alias name", |
| 223 | + "groupName": "platform", |
| 224 | + "helpMarkDown": "Android key alias name.", |
| 225 | + "required": true, |
| 226 | + "defaultValue": "", |
| 227 | + "visibleRule": "buildTarget == Android && signAppBundle == true && buildScriptType == default" |
| 228 | + }, |
| 229 | + { |
| 230 | + "name": "keystoreAliasPass", |
| 231 | + "type": "string", |
| 232 | + "label": "Keystore alias password", |
| 233 | + "groupName": "platform", |
| 234 | + "helpMarkDown": "Password for the key used for signing an Android application. If left empty, the keystore main password is assumed.", |
| 235 | + "required": false, |
| 236 | + "defaultValue": "", |
| 237 | + "visibleRule": "buildTarget == Android && signAppBundle == true && buildScriptType == default" |
158 | 238 | } |
159 | 239 | ], |
160 | 240 | "outputVariables": [ |
161 | 241 | { |
162 | | - "name": "logsOutputPath", |
163 | | - "description": "Path to the Unity editor log files generated." |
| 242 | + "name": "editorLogFilePath", |
| 243 | + "description": "Specifies the location of the editor log file generated." |
164 | 244 | } |
165 | 245 | ], |
166 | 246 | "execution": { |
|
0 commit comments