Merge pull request #302 from e-korolevskii/scripts-update

Updated local installation scripts
This commit is contained in:
Marko Zivic 2022-07-29 08:52:45 +02:00 committed by GitHub
commit e81cd4d454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 189 additions and 147 deletions

View File

@ -29,7 +29,7 @@
.PARAMETER Version
Default: latest
Represents a build version on specific channel. Possible values:
- latest - most latest build on specific channel
- latest - the latest build on specific channel
- 3-part version in a format A.B.C - represents specific version of build
examples: 2.0.0-preview2-006120, 1.1.0
.PARAMETER Internal
@ -171,6 +171,7 @@ function Say-Invocation($Invocation) {
function Invoke-With-Retry([ScriptBlock]$ScriptBlock, [System.Threading.CancellationToken]$cancellationToken = [System.Threading.CancellationToken]::None, [int]$MaxAttempts = 3, [int]$SecondsBetweenAttempts = 1) {
$Attempts = 0
$local:startTime = $(get-date)
while ($true) {
try {
@ -182,7 +183,11 @@ function Invoke-With-Retry([ScriptBlock]$ScriptBlock, [System.Threading.Cancella
Start-Sleep $SecondsBetweenAttempts
}
else {
throw
$local:elapsedTime = $(get-date) - $local:startTime
if (($local:elapsedTime.TotalSeconds - $DownloadTimeout) -gt 0 -and -not $cancellationToken.IsCancellationRequested) {
throw New-Object System.TimeoutException("Failed to reach the server: connection timeout: default timeout is $DownloadTimeout second(s)");
}
throw;
}
}
}
@ -199,6 +204,15 @@ function Get-Machine-Architecture() {
return $ENV:PROCESSOR_ARCHITEW6432
}
# covers the case when PS x64 is run on ARM machine
if( ((Get-CimInstance -ClassName CIM_OperatingSystem).OSArchitecture) -like "ARM*") {
if( [Environment]::Is64BitOperatingSystem )
{
return "arm64"
}
return "arm"
}
return $ENV:PROCESSOR_ARCHITECTURE
}
@ -800,6 +814,11 @@ function Extract-Dotnet-Package([string]$ZipPath, [string]$OutPath) {
}
}
}
catch
{
Say-Error "Failed to extract package. Exception: $_"
throw;
}
finally {
if ($null -ne $Zip) {
$Zip.Dispose()
@ -1103,6 +1122,10 @@ $ScriptName = $MyInvocation.MyCommand.Name
$feeds = Get-Feeds-To-Use
$DownloadLinks = @()
if ($Version.ToLowerInvariant() -ne "latest" -and -not [string]::IsNullOrEmpty($Quality)) {
throw "Quality and Version options are not allowed to be specified simultaneously. See https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#options for details."
}
# aka.ms links can only be used if the user did not request a specific version via the command line or a global.json file.
if ([string]::IsNullOrEmpty($JSonFile) -and ($Version -eq "latest")) {
($DownloadLink, $SpecificVersion, $EffectiveVersion) = Get-AkaMsLink-And-Version $NormalizedChannel $NormalizedQuality $Internal $NormalizedProduct $CLIArchitecture
@ -1248,13 +1271,14 @@ Prepend-Sdk-InstallRoot-To-Path -InstallRoot $InstallRoot
Say "Note that the script does not resolve dependencies during installation."
Say "To check the list of dependencies, go to https://docs.microsoft.com/dotnet/core/install/windows#dependencies"
Say "Installed version is $($DownloadedLink.effectiveVersion)"
Say "Installation finished"
# SIG # Begin signature block
# MIInoQYJKoZIhvcNAQcCoIInkjCCJ44CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# MIIntgYJKoZIhvcNAQcCoIInpzCCJ6MCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAuo3sRWvfrJ+Bd
# sIQ2zLeO20Ij33Vb5ljtEhxAYYSEc6CCDYEwggX/MIID56ADAgECAhMzAAACUosz
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAWRVFLyrqIgVTq
# e8MfFPb0zEvVGrTgsOiZfb3RUDIgW6CCDYEwggX/MIID56ADAgECAhMzAAACUosz
# qviV8znbAAAAAAJSMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYD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YDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdS
# ZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xJjAkBgNVBAMT
# HU1pY3Jvc29mdCBUaW1lLVN0YW1wIFBDQSAyMDEwAhMzAAABjAGXYkc2dmY7AAEA
# AAGMMCIEIKcN9L+csRKow2tSFdchSU5W4SWr7uSBWPabv7VYZJAPMA0GCSqGSIb3
# DQEBCwUABIICAHxfTCYxJZGcJeLWFIc73V5HX16dMk920v5UrVNQSDJMWRKI5v7+
# 3moCbfFqA0/f3Ue/Wcp8Oio/PpLPvwB30AY087AaY1TAZCnXzotErEQCGRzkKdAk
# irfzIHH3rj0pH6DQ9uiLviBdMFpbfbgTGuwJ/I/scWwvgYY58gFqfopWXN+kmP1h
# 21dOm4gJWZqNeNm9q2suk9TQNhekpJfpWJiOZ1oyICcYl2LTLTdQ7NioUycSyE/t
# kTwjQTe1CDxqKzoh4XtXGXQBX967dwr0HIeqWbmIFOWSfZnuz9Y00HsTmrvw2ta0
# KRt4ar5gvgS2OgC18xloOagFHoZst+PybMFkMoVAR+DgyaM/80riAtgIySO64BbI
# W5I4e6NruGvdtPCeSV5wdE+CMlSrFl+HOjx4ywb0IyfikGM4/RsDnso9ctbD9U6x
# s62K0tMEnEe5sul9La+z3ILV/Ii1jVB1d4nItv/3jn4e75pKQ1XBsvX5MA9XeeUW
# CgCXousGgc40n7pjAsNn9VylM3IUpmslyH8M+ek2aRikHu5XrWLHbzdrAMLJOCmh
# 6BdNbF+G6PM7MIgKmGQe+MT0+Wc2SfaMbNz/HYhVMnfE2JJNLwkeBbjCgwK7Jkzd
# 8JwBRwWYfDzbs8sN8puHr10SJSbA7zl1d81w7DsLFCBK42oHhbh4tCtG
# SIG # End signature block

View File

@ -1000,19 +1000,27 @@ downloadcurl() {
# Avoid passing URI with credentials to functions: note, most of them echoing parameters of invocation in verbose output.
local remote_path_with_credential="${remote_path}${feed_credential}"
local curl_options="--retry 20 --retry-delay 2 --connect-timeout 15 -sSL -f --create-dirs "
local failed=false
local curl_exit_code=0;
if [ -z "$out_path" ]; then
curl $curl_options "$remote_path_with_credential" 2>&1 || failed=true
curl $curl_options "$remote_path_with_credential" 2>&1
curl_exit_code=$?
else
curl $curl_options -o "$out_path" "$remote_path_with_credential" 2>&1 || failed=true
curl $curl_options -o "$out_path" "$remote_path_with_credential" 2>&1
curl_exit_code=$?
fi
if [ "$failed" = true ]; then
local disable_feed_credential=false
local response=$(get_http_header_curl $remote_path $disable_feed_credential)
http_code=$( echo "$response" | awk '/^HTTP/{print $2}' | tail -1 )
if [ $curl_exit_code -gt 0 ]; then
download_error_msg="Unable to download $remote_path."
if [[ $http_code != 2* ]]; then
download_error_msg+=" Returned HTTP status code: $http_code."
# Check for curl timeout codes
if [[ $curl_exit_code == 7 || $curl_exit_code == 28 ]]; then
download_error_msg+=" Failed to reach the server: connection timeout."
else
local disable_feed_credential=false
local response=$(get_http_header_curl $remote_path $disable_feed_credential)
http_code=$( echo "$response" | awk '/^HTTP/{print $2}' | tail -1 )
if [[ ! -z $http_code && $http_code != 2* ]]; then
download_error_msg+=" Returned HTTP status code: $http_code."
fi
fi
say_verbose "$download_error_msg"
return 1
@ -1055,8 +1063,11 @@ downloadwget() {
local response=$(get_http_header_wget $remote_path $disable_feed_credential)
http_code=$( echo "$response" | awk '/^ HTTP/{print $2}' | tail -1 )
download_error_msg="Unable to download $remote_path."
if [[ $http_code != 2* ]]; then
if [[ ! -z $http_code && $http_code != 2* ]]; then
download_error_msg+=" Returned HTTP status code: $http_code."
# wget exit code 4 stands for network-issue
elif [[ $wget_result == 4 ]]; then
download_error_msg+=" Failed to reach the server: connection timeout."
fi
say_verbose "$download_error_msg"
return 1
@ -1179,6 +1190,11 @@ generate_akams_links() {
local valid_aka_ms_link=true;
normalized_version="$(to_lowercase "$version")"
if [[ "$normalized_version" != "latest" ]] && [ -n "$normalized_quality" ]; then
say_err "Quality and Version options are not allowed to be specified simultaneously. See https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#options for details."
return 1
fi
if [[ -n "$json_file" || "$normalized_version" != "latest" ]]; then
# aka.ms links are not needed when exact version is specified via command or json file
return
@ -1392,6 +1408,7 @@ install_dotnet() {
unset IFS;
say_verbose "Checking installation: version = $release_version"
if is_dotnet_package_installed "$install_root" "$asset_relative_path" "$release_version"; then
say "Installed version is $effective_version"
return 0
fi
fi
@ -1399,6 +1416,7 @@ install_dotnet() {
# Check if the standard SDK version is installed.
say_verbose "Checking installation: version = $effective_version"
if is_dotnet_package_installed "$install_root" "$asset_relative_path" "$effective_version"; then
say "Installed version is $effective_version"
return 0
fi
@ -1552,7 +1570,7 @@ do
echo " -v,--version <VERSION> Use specific VERSION, Defaults to \`$version\`."
echo " -Version"
echo " Possible values:"
echo " - latest - most latest build on specific channel"
echo " - latest - the latest build on specific channel"
echo " - 3-part version in a format A.B.C - represents specific version of build"
echo " examples: 2.0.0-preview2-006120; 1.1.0"
echo " -q,--quality <quality> Download the latest build of specified quality in the channel."