Skip to content

Commit 795fe51

Browse files
authored
Introduce new configuration option to build using build profiles (#276)
* Remove deprecation * Align UnityCMD input options with other tasks and remove deprecation * Revert extension version change until ready for release * Organize input variables into logical groups * Add keystore input options * Map and pass new inputs * Add missing changelog * Add option to build app bundle instead of APK * Introduce new configuration option to build using build profile * Update CHANGELOG * Do not store build profile as filePath input since we only need the path relative to project root * Update README * Add PR trigger * Update gitignore * Fix tests
1 parent a7c5b12 commit 795fe51

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

Tasks/UnityBuild/UnityBuildV3/task.json

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"author": "Dinomite",
1313
"version": {
1414
"Major": 3,
15-
"Minor": 2,
16-
"Patch": 5
15+
"Minor": 3,
16+
"Patch": 0
1717
},
1818
"releaseNotes": "[Full Changelog](https://github.com/Dinomite-Studios/unity-azure-pipelines-tasks/blob/master/Tasks/UnityBuild/UnityBuildV3/CHANGELOG.md)",
1919
"minimumAgentVersion": "2.144.0",
@@ -91,13 +91,26 @@
9191
"required": false,
9292
"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."
9393
},
94+
{
95+
"name": "buildFlow",
96+
"type": "radio",
97+
"label": "Build Flow",
98+
"defaultValue": "platform",
99+
"helpMarkDown": "Select the build target flow used to build your project. Starting with Unity 6 the new build profiles offer a sophisticated way of building for different platforms.",
100+
"groupName": "build",
101+
"options": {
102+
"platform": "Platform",
103+
"profile": "Profile (Unity 6+)"
104+
}
105+
},
94106
{
95107
"name": "buildTarget",
96108
"type": "pickList",
97109
"label": "Build target",
98110
"defaultValue": "standalone",
99111
"helpMarkDown": "Build platform to build the Unity project for.",
100112
"groupName": "build",
113+
"visibleRule": "buildFlow = platform",
101114
"options": {
102115
"standalone": "Standalone (agent-based)",
103116
"Win": "Windows Standalone (32-bit)",
@@ -120,6 +133,16 @@
120133
"visionos": "visionOS"
121134
}
122135
},
136+
{
137+
"name": "buildProfile",
138+
"type": "string",
139+
"helpMarkDown": "Set the build profile saved at the given path as an active build profile for the build.",
140+
"label": "Profile",
141+
"groupName": "build",
142+
"required": true,
143+
"defaultValue": "",
144+
"visibleRule": "buildFlow = profile"
145+
},
123146
{
124147
"name": "buildScriptType",
125148
"type": "radio",

0 commit comments

Comments
 (0)