summaryrefslogtreecommitdiff
path: root/init-tools.cmd
diff options
context:
space:
mode:
authorJose Perez Rodriguez <joperezr@microsoft.com>2016-05-27 21:24:57 (GMT)
committerJose Perez Rodriguez <joperezr@microsoft.com>2016-05-27 21:24:57 (GMT)
commite1b55782add73bc175d050569f67cef87909ed54 (patch)
treeb1f42d4c3ea6ade8baeec3e8533634ee6feec509 /init-tools.cmd
parent2e73ba95a266ac513ebef607107c5facd0825741 (diff)
downloadcoreclr-e1b55782add73bc175d050569f67cef87909ed54.zip
coreclr-e1b55782add73bc175d050569f67cef87909ed54.tar.gz
coreclr-e1b55782add73bc175d050569f67cef87909ed54.tar.bz2
Adding commit hash to all built binaries.
Diffstat (limited to 'init-tools.cmd')
-rw-r--r--init-tools.cmd2
1 files changed, 1 insertions, 1 deletions
diff --git a/init-tools.cmd b/init-tools.cmd
index 669e6a0..abc34f9 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%"