File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,16 @@ steps:
2020 {
2121 If (!$setupInstance)
2222 {
23- Write-Error "No Unity version specified and no Unity installation found."
24- Exit 1
23+ Write-Host "No Unity version specified and no Unity installation found - forcing to min supported version of 2018.3.10f1"
24+ $version = '2018.3.10f1';
25+ }
26+ Else
27+ {
28+ Write-Host "Using already installed Unity version '$($setupInstance.Version)'."
2529 }
26-
27- Write-Host "Using already installed Unity version '$($setupInstance.Version)'."
2830 }
29- ElseIf ($setupInstance.Version.ToString() -ne $version)
31+
32+ If ($setupInstance.Version.ToString() -ne $version)
3033 {
3134 Write-Host "Installing Unity version '$version'."
3235 Install-UnitySetupInstance -Installers (Find-UnitySetupInstaller -Version $version -Components "Windows")
You can’t perform that action at this time.
0 commit comments