Skip to content

Commit f63bfbe

Browse files
authored
Sync install-dotnet-preview.sh (#591)
1 parent b9f44f3 commit f63bfbe

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/install-dotnet-preview.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# System must first have curl installed.
44
# The following command will download the installation script and run it.
5-
# curl -L https://builds.dotnet.microsoft.com/dotnet/release/install-preview/9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/install-dotnet-$PRERELEASETYPE.sh -o install-dotnet-$PRERELEASETYPE.sh && bash install-dotnet-$PRERELEASETYPE.sh
5+
# curl -L https://builds.dotnet.microsoft.com/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/install-dotnet-$PRERELEASETYPE.sh -o install-dotnet-$PRERELEASETYPE.sh && bash install-dotnet-$PRERELEASETYPE.sh
66
# The script will
77
# - install any additional dependences needed for the script to continue
88
# - download a tar.gz containing the .NET preview installer packages to the current directory
@@ -29,9 +29,9 @@ DOWNLOAD_DIR=$PWD
2929
DOTNET_PACKAGE_DIR="dotnet_packages"
3030
SUPPORTED_DISTRO=1
3131

32-
DEPS_BUILD="24473.5"
32+
DEPS_BUILD="25163.2"
3333
PREVIEW_NUMBER="2"
34-
PRERELEASETYPE="rc" # rc, preview
34+
PRERELEASETYPE="preview" # rc, preview
3535

3636
declare -a ADDITIONAL_DEPS
3737

@@ -72,27 +72,27 @@ function distro_check()
7272
;;
7373
*"Fedora"* | *"Red Hat"*)
7474
PACKAGE_TYPE="rpm"
75-
DEPS_PACKAGE="https://builds.dotnet.microsoft.com/dotnet/release/install-preview/9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/dotnet-runtime-deps-9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER.$DEPS_BUILD-fedora.34-x64.rpm"
75+
DEPS_PACKAGE="https://builds.dotnet.microsoft.com/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/dotnet-runtime-deps-10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER.$DEPS_BUILD-fedora.34-x64.rpm"
7676
ADDITIONAL_DEPS=("tar" "gzip" "compat-openssl10" "libicu")
7777
;;
7878
*"openSUSE"*)
7979
PACKAGE_TYPE="rpm"
80-
DEPS_PACKAGE="https://builds.dotnet.microsoft.com/dotnet/release/install-preview/9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/dotnet-runtime-deps-9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER.$DEPS_BUILD-opensuse.42-x64.rpm"
80+
DEPS_PACKAGE="https://builds.dotnet.microsoft.com/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/dotnet-runtime-deps-10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER.$DEPS_BUILD-opensuse.42-x64.rpm"
8181
ADDITIONAL_DEPS=("tar" "gzip" "libopenssl1_0_0" "libicu")
8282
;;
8383
*"sles"**)
8484
PACKAGE_TYPE="rpm"
85-
DEPS_PACKAGE="https://builds.dotnet.microsoft.com/dotnet/release/install-preview/9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/dotnet-runtime-deps-9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER.$DEPS_BUILD-sles.12-x64.rpm"
85+
DEPS_PACKAGE="https://builds.dotnet.microsoft.com/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/dotnet-runtime-deps-10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER.$DEPS_BUILD-sles.12-x64.rpm"
8686
ADDITIONAL_DEPS=("tar" "gzip" "libopenssl1_0_0" "libicu")
8787
;;
8888
*"Oracle"*)
8989
PACKAGE_TYPE="rpm"
90-
DEPS_PACKAGE="https://builds.dotnet.microsoft.com/dotnet/release/install-preview/9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/dotnet-runtime-deps-9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER.$DEPS_BUILD-oraclelinux.8-x64.rpm"
90+
DEPS_PACKAGE="https://builds.dotnet.microsoft.com/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/dotnet-runtime-deps-10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER.$DEPS_BUILD-oraclelinux.8-x64.rpm"
9191
ADDITIONAL_DEPS=("tar" "gzip" "libicu")
9292
;;
9393
*"CentOS"*)
9494
PACKAGE_TYPE="rpm"
95-
DEPS_PACKAGE="https://builds.dotnet.microsoft.com/dotnet/release/install-preview/9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/dotnet-runtime-deps-9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER.$DEPS_BUILD-centos.8-x64.rpm"
95+
DEPS_PACKAGE="https://builds.dotnet.microsoft.com/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/dotnet-runtime-deps-10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER.$DEPS_BUILD-centos.8-x64.rpm"
9696
ADDITIONAL_DEPS=("tar" "gzip" "libicu")
9797
;;
9898
*) SUPPORTED_DISTRO=0 ;;
@@ -104,20 +104,20 @@ function download_preview()
104104
case $PACKAGE_TYPE in
105105
"rpm")
106106
echo "*** Setting package type to rpm."
107-
DOTNET_SRC="dotnet-9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER-rpm.tar.gz"
107+
DOTNET_SRC="dotnet-10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER-rpm.tar.gz"
108108
;;
109109
"deb")
110110
echo "*** Setting package type to deb."
111-
DOTNET_SRC="dotnet-9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER-deb.tar.gz"
111+
DOTNET_SRC="dotnet-10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER-deb.tar.gz"
112112
;;
113113
*)
114114
esac
115115

116116
echo "*** Download source: ${DOTNET_SRC}"
117117
echo
118-
echo "*** Downloading https://builds.dotnet.microsoft.com/dotnet/release/install-preview/9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/$DOTNET_SRC to $DOWNLOAD_DIR ..."
118+
echo "*** Downloading https://builds.dotnet.microsoft.com/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/$DOTNET_SRC to $DOWNLOAD_DIR ..."
119119

120-
curl "https://builds.dotnet.microsoft.com/dotnet/release/install-preview/9.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/"$DOTNET_SRC -o $DOWNLOAD_DIR/$DOTNET_SRC
120+
curl "https://builds.dotnet.microsoft.com/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/"$DOTNET_SRC -o $DOWNLOAD_DIR/$DOTNET_SRC
121121

122122
echo
123123
echo "*** Unpacking ${DOTNET_SRC} ..."

0 commit comments

Comments
 (0)