Commit 665c00b3 authored by Nick Craver's avatar Nick Craver

Toolng cheese move - lock in preview2 for now.

parent 91725fb3
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
#> #>
[cmdletbinding()] [cmdletbinding()]
param( param(
[string]$Channel="rel-1.0.0", [string]$Channel="preview",
[string]$Version="Latest", [string]$Version="Latest",
[string]$InstallDir="<auto>", [string]$InstallDir="<auto>",
[string]$Architecture="<auto>", [string]$Architecture="<auto>",
...@@ -123,7 +123,7 @@ function Get-Latest-Version-Info([string]$AzureFeed, [string]$AzureChannel, [str ...@@ -123,7 +123,7 @@ function Get-Latest-Version-Info([string]$AzureFeed, [string]$AzureChannel, [str
$VersionFileUrl = "$AzureFeed/$AzureChannel/dnvm/latest.sharedfx.win.$CLIArchitecture.version" $VersionFileUrl = "$AzureFeed/$AzureChannel/dnvm/latest.sharedfx.win.$CLIArchitecture.version"
} }
else { else {
$VersionFileUrl = "$AzureFeed/Sdk/$AzureChannel/latest.version" $VersionFileUrl = "$AzureFeed/$AzureChannel/dnvm/latest.win.$CLIArchitecture.version"
} }
$Response = Invoke-WebRequest -UseBasicParsing $VersionFileUrl $Response = Invoke-WebRequest -UseBasicParsing $VersionFileUrl
...@@ -147,8 +147,10 @@ function Get-Azure-Channel-From-Channel([string]$Channel) { ...@@ -147,8 +147,10 @@ function Get-Azure-Channel-From-Channel([string]$Channel) {
# For compatibility with build scripts accept also directly Azure channels names # For compatibility with build scripts accept also directly Azure channels names
switch ($Channel.ToLower()) { switch ($Channel.ToLower()) {
{ ($_ -eq "future") -or ($_ -eq "dev") } { return "dev" } { ($_ -eq "future") -or ($_ -eq "dev") } { return "dev" }
{ ($_ -eq "beta") } { return "beta" }
{ ($_ -eq "preview") } { return "preview" }
{ $_ -eq "production" } { throw "Production channel does not exist yet" } { $_ -eq "production" } { throw "Production channel does not exist yet" }
default { return $_ } default { throw "``$Channel`` is an invalid channel name. Use one of the following: ``future``, ``preview``, ``production``" }
} }
} }
...@@ -169,16 +171,19 @@ function Get-Download-Links([string]$AzureFeed, [string]$AzureChannel, [string]$ ...@@ -169,16 +171,19 @@ function Get-Download-Links([string]$AzureFeed, [string]$AzureChannel, [string]$
Say-Invocation $MyInvocation Say-Invocation $MyInvocation
$ret = @() $ret = @()
$files = @()
if ($SharedRuntime) { if ($SharedRuntime) {
$PayloadURL = "$AzureFeed/$AzureChannel/Binaries/$SpecificVersion/dotnet-win-$CLIArchitecture.$SpecificVersion.zip" $files += "dotnet";
} }
else { else {
$PayloadURL = "$AzureFeed/Sdk/$SpecificVersion/dotnet-dev-win-$CLIArchitecture.$SpecificVersion.zip" $files += "dotnet-dev";
}
foreach ($file in $files) {
$PayloadURL = "$AzureFeed/$AzureChannel/Binaries/$SpecificVersion/$file-win-$CLIArchitecture.$SpecificVersion.zip"
Say-Verbose "Constructed payload URL: $PayloadURL"
$ret += $PayloadURL
} }
Say-Verbose "Constructed payload URL: $PayloadURL"
$ret += $PayloadURL
return $ret return $ret
} }
......
...@@ -288,7 +288,7 @@ get_latest_version_info() { ...@@ -288,7 +288,7 @@ get_latest_version_info() {
if [ "$shared_runtime" = true ]; then if [ "$shared_runtime" = true ]; then
version_file_url="$azure_feed/$azure_channel/dnvm/latest.sharedfx.$osname.$normalized_architecture.version" version_file_url="$azure_feed/$azure_channel/dnvm/latest.sharedfx.$osname.$normalized_architecture.version"
else else
version_file_url="$azure_feed/Sdk/$azure_channel/latest.version" version_file_url="$azure_feed/$azure_channel/dnvm/latest.$osname.$normalized_architecture.version"
fi fi
say_verbose "get_latest_version_info: latest url: $version_file_url" say_verbose "get_latest_version_info: latest url: $version_file_url"
...@@ -307,13 +307,21 @@ get_azure_channel_from_channel() { ...@@ -307,13 +307,21 @@ get_azure_channel_from_channel() {
echo "dev" echo "dev"
return 0 return 0
;; ;;
beta)
echo "beta"
return 0
;;
preview)
echo "preview"
return 0
;;
production) production)
say_err "Production channel does not exist yet" say_err "Production channel does not exist yet"
return 1 return 1
esac esac
echo $channel say_err "``$1`` is an invalid channel name. Use one of the following: ``future``, ``preview``, ``production``"
return 0 return 1
} }
# args: # args:
...@@ -366,7 +374,7 @@ construct_download_link() { ...@@ -366,7 +374,7 @@ construct_download_link() {
if [ "$shared_runtime" = true ]; then if [ "$shared_runtime" = true ]; then
download_link="$azure_feed/$azure_channel/Binaries/$specific_version/dotnet-$osname-$normalized_architecture.$specific_version.tar.gz" download_link="$azure_feed/$azure_channel/Binaries/$specific_version/dotnet-$osname-$normalized_architecture.$specific_version.tar.gz"
else else
download_link="$azure_feed/Sdk/$specific_version/dotnet-dev-$osname-$normalized_architecture.$specific_version.tar.gz" download_link="$azure_feed/$azure_channel/Binaries/$specific_version/dotnet-dev-$osname-$normalized_architecture.$specific_version.tar.gz"
fi fi
echo "$download_link" echo "$download_link"
...@@ -549,7 +557,7 @@ local_version_file_relative_path="/.version" ...@@ -549,7 +557,7 @@ local_version_file_relative_path="/.version"
bin_folder_relative_path="" bin_folder_relative_path=""
temporary_file_template="${TMPDIR:-/tmp}/dotnet.XXXXXXXXX" temporary_file_template="${TMPDIR:-/tmp}/dotnet.XXXXXXXXX"
channel="rel-1.0.0" channel="preview"
version="Latest" version="Latest"
install_dir="<auto>" install_dir="<auto>"
architecture="<auto>" architecture="<auto>"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment