From fc5cb03e64037b611b0741236d3023bb1cc481ce Mon Sep 17 00:00:00 2001 From: Jose Perez Rodriguez Date: Tue, 10 Oct 2017 14:54:18 -0700 Subject: [PATCH] Update to 2.0 RTM CLI (#14396) * Update to 2.0 RTM CLI * PR feedback --- DotnetCLIVersion.txt | 2 +- init-tools.cmd | 2 +- init-tools.sh | 19 ++++++++++++------- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/DotnetCLIVersion.txt b/DotnetCLIVersion.txt index 170f3fc..227cea2 100644 --- a/DotnetCLIVersion.txt +++ b/DotnetCLIVersion.txt @@ -1 +1 @@ -2.0.0-preview1-005977 +2.0.0 diff --git a/init-tools.cmd b/init-tools.cmd index b91ecb7..5aa2ef5 100644 --- a/init-tools.cmd +++ b/init-tools.cmd @@ -40,7 +40,7 @@ if exist "%DOTNET_CMD%" goto :afterdotnetrestore echo Installing dotnet cli... if NOT exist "%DOTNET_PATH%" mkdir "%DOTNET_PATH%" -set DOTNET_ZIP_NAME=dotnet-dev-win-x64.%DOTNET_VERSION%.zip +set DOTNET_ZIP_NAME=dotnet-sdk-%DOTNET_VERSION%-win-x64.zip set DOTNET_REMOTE_PATH=https://dotnetcli.blob.core.windows.net/dotnet/Sdk/%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%" diff --git a/init-tools.sh b/init-tools.sh index 1dff622..f7f5cba 100755 --- a/init-tools.sh +++ b/init-tools.sh @@ -20,11 +20,14 @@ if [ -z "$__DOTNET_PKG" ]; then echo "Error: build not supported on 32 bit Unix" exit 1 fi + + __PKG_ARCH=x64 + OSName=$(uname -s) case $OSName in Darwin) OS=OSX - __DOTNET_PKG=dotnet-dev-osx-x64 + __PKG_RID=osx ulimit -n 2048 # Format x.y.z as single integer with three digits for each part VERSION=`sw_vers -productVersion| sed -e 's/\./ /g' | xargs printf "%03d%03d%03d"` @@ -35,7 +38,7 @@ if [ -z "$__DOTNET_PKG" ]; then ;; Linux) - __DOTNET_PKG=dotnet-dev-linux-x64 + __PKG_RID=linux OS=Linux if [ -e /etc/os-release ]; then @@ -43,24 +46,26 @@ if [ -z "$__DOTNET_PKG" ]; then if [[ $ID == "alpine" ]]; then # remove the last version digit VERSION_ID=${VERSION_ID%.*} - __DOTNET_PKG=dotnet-dev-alpine.$VERSION_ID-x64 + __PKG_RID=alpine.$VERSION_ID fi elif [ -e /etc/redhat-release ]; then redhatRelease=$(> $__init_tools_log if command -v curl > /dev/null; then -- 2.7.4