File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -344,6 +344,8 @@ function ConvertTo-UnitySetupComponent {
344
344
Finds UnitySetup component installers for a specified version by querying Unity's website.
345
345
.PARAMETER Version
346
346
What version of Unity are you looking for?
347
+ .PARAMETER Hash
348
+ Manually specify the build hash, to select a private build.
347
349
.PARAMETER Components
348
350
What components would you like to search for? Defaults to All
349
351
.EXAMPLE
@@ -358,7 +360,10 @@ function Find-UnitySetupInstaller {
358
360
[UnityVersion] $Version,
359
361
360
362
[parameter(Mandatory = $false)]
361
- [UnitySetupComponent] $Components = [UnitySetupComponent]::All
363
+ [UnitySetupComponent] $Components = [UnitySetupComponent]::All,
364
+
365
+ [parameter(Mandatory = $false)]
366
+ [string] $Hash = ""
362
367
)
363
368
364
369
$Components = ConvertTo-UnitySetupComponent -Component $Components -Version $Version
@@ -514,6 +519,10 @@ function Find-UnitySetupInstaller {
514
519
$knownBaseUrls = $knownBaseUrls | Sort-Object -Property @{ Expression = { [math]::Abs(($_.CompareTo($linkComponents[0]))) }; Ascending = $true }
515
520
}
516
521
522
+ if ($Hash -ne "") {
523
+ $linkComponents[1] = $Hash
524
+ }
525
+
517
526
$installerTemplates.Keys | Where-Object { $Components -band $_ } | ForEach-Object {
518
527
$templates = $installerTemplates.Item($_);
519
528
$result = $null
You can’t perform that action at this time.
0 commit comments