-
Notifications
You must be signed in to change notification settings - Fork 99
Powershell: changed the location of windows desktop runtime starting 5.0 #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -340,9 +340,8 @@ function Get-Latest-Version-Info([string]$AzureFeed, [string]$Channel) { | |
elseif ($Runtime -eq "aspnetcore") { | ||
$VersionFileUrl = "$UncachedFeed/aspnetcore/Runtime/$Channel/latest.version" | ||
} | ||
# Currently, the WindowsDesktop runtime is manufactured with the .Net core runtime | ||
elseif ($Runtime -eq "windowsdesktop") { | ||
$VersionFileUrl = "$UncachedFeed/Runtime/$Channel/latest.version" | ||
$VersionFileUrl = "$UncachedFeed/WindowsDesktop/$Channel/latest.version" | ||
} | ||
elseif (-not $Runtime) { | ||
$VersionFileUrl = "$UncachedFeed/Sdk/$Channel/latest.version" | ||
|
@@ -438,7 +437,22 @@ function Get-Download-Link([string]$AzureFeed, [string]$SpecificVersion, [string | |
$PayloadURL = "$AzureFeed/aspnetcore/Runtime/$SpecificVersion/aspnetcore-runtime-$SpecificProductVersion-win-$CLIArchitecture.zip" | ||
} | ||
elseif ($Runtime -eq "windowsdesktop") { | ||
$PayloadURL = "$AzureFeed/Runtime/$SpecificVersion/windowsdesktop-runtime-$SpecificProductVersion-win-$CLIArchitecture.zip" | ||
if ($SpecificVersion -match '^(\d+)\.(.*)$') | ||
{ | ||
$majorVersion = [int]$Matches[1] | ||
if ($majorVersion -lt 5) | ||
vlada-shubina marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
{ | ||
$PayloadURL = "$AzureFeed/Runtime/$SpecificVersion/windowsdesktop-runtime-$SpecificProductVersion-win-$CLIArchitecture.zip" | ||
} | ||
else | ||
{ | ||
$PayloadURL = "$AzureFeed/WindowsDesktop/$SpecificVersion/windowsdesktop-runtime-$SpecificProductVersion-win-$CLIArchitecture.zip" | ||
vlada-shubina marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
} | ||
else | ||
{ | ||
$PayloadURL = "$AzureFeed/Runtime/$SpecificVersion/windowsdesktop-runtime-$SpecificProductVersion-win-$CLIArchitecture.zip" | ||
} | ||
} | ||
elseif (-not $Runtime) { | ||
$PayloadURL = "$AzureFeed/Sdk/$SpecificVersion/dotnet-sdk-$SpecificProductVersion-win-$CLIArchitecture.zip" | ||
|
@@ -480,7 +494,22 @@ function Get-Product-Version([string]$AzureFeed, [string]$SpecificVersion) { | |
$ProductVersionTxtURL = "$AzureFeed/aspnetcore/Runtime/$SpecificVersion/productVersion.txt" | ||
} | ||
elseif ($Runtime -eq "windowsdesktop") { | ||
$ProductVersionTxtURL = "$AzureFeed/Runtime/$SpecificVersion/productVersion.txt" | ||
if ($SpecificVersion -match '^(\d+)\.(.*)') | ||
{ | ||
$majorVersion = [int]$Matches[1] | ||
if ($majorVersion -lt 5) | ||
{ | ||
$ProductVersionTxtURL = "$AzureFeed/Runtime/$SpecificVersion/productVersion.txt" | ||
vlada-shubina marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
} | ||
else | ||
{ | ||
$ProductVersionTxtURL = "$AzureFeed/WindowsDesktop/$SpecificVersion/productVersion.txt" | ||
} | ||
} | ||
else | ||
{ | ||
$ProductVersionTxtURL = "$AzureFeed/Runtime/$SpecificVersion/productVersion.txt" | ||
|
||
} | ||
} | ||
elseif (-not $Runtime) { | ||
$ProductVersionTxtURL = "$AzureFeed/Sdk/$SpecificVersion/productVersion.txt" | ||
|
Uh oh!
There was an error while loading. Please reload this page.