diff options
author | Jose Perez Rodriguez <joperezr@microsoft.com> | 2016-05-27 14:24:57 -0700 |
---|---|---|
committer | Jose Perez Rodriguez <joperezr@microsoft.com> | 2016-05-27 14:24:57 -0700 |
commit | e1b55782add73bc175d050569f67cef87909ed54 (patch) | |
tree | b1f42d4c3ea6ade8baeec3e8533634ee6feec509 /init-tools.cmd | |
parent | 2e73ba95a266ac513ebef607107c5facd0825741 (diff) | |
download | coreclr-e1b55782add73bc175d050569f67cef87909ed54.tar.gz coreclr-e1b55782add73bc175d050569f67cef87909ed54.tar.bz2 coreclr-e1b55782add73bc175d050569f67cef87909ed54.zip |
Adding commit hash to all built binaries.
Diffstat (limited to 'init-tools.cmd')
-rw-r--r-- | init-tools.cmd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init-tools.cmd b/init-tools.cmd index 669e6a05a6..abc34f9aa6 100644 --- a/init-tools.cmd +++ b/init-tools.cmd @@ -45,7 +45,7 @@ echo Installing dotnet cli... if NOT exist "%DOTNET_PATH%" mkdir "%DOTNET_PATH%" set /p DOTNET_VERSION=< "%~dp0DotnetCLIVersion.txt" set DOTNET_ZIP_NAME=dotnet-dev-win-x64.%DOTNET_VERSION%.zip -set DOTNET_REMOTE_PATH=https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/%DOTNET_VERSION%/%DOTNET_ZIP_NAME% +set DOTNET_REMOTE_PATH=https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/%DOTNET_VERSION%/%DOTNET_ZIP_NAME% set DOTNET_LOCAL_PATH=%DOTNET_PATH%%DOTNET_ZIP_NAME% echo Installing '%DOTNET_REMOTE_PATH%' to '%DOTNET_LOCAL_PATH%' >> "%INIT_TOOLS_LOG%" powershell -NoProfile -ExecutionPolicy unrestricted -Command "$retryCount = 0; $success = $false; do { try { (New-Object Net.WebClient).DownloadFile('%DOTNET_REMOTE_PATH%', '%DOTNET_LOCAL_PATH%'); $success = $true; } catch { if ($retryCount -ge 6) { throw; } else { $retryCount++; Start-Sleep -Seconds (5 * $retryCount); } } } while ($success -eq $false); Add-Type -Assembly 'System.IO.Compression.FileSystem' -ErrorVariable AddTypeErrors; if ($AddTypeErrors.Count -eq 0) { [System.IO.Compression.ZipFile]::ExtractToDirectory('%DOTNET_LOCAL_PATH%', '%DOTNET_PATH%') } else { (New-Object -com shell.application).namespace('%DOTNET_PATH%').CopyHere((new-object -com shell.application).namespace('%DOTNET_LOCAL_PATH%').Items(),16) }" >> "%INIT_TOOLS_LOG%" |