diff --git a/CODEOWNERS b/CODEOWNERS index 5d5f26974b..0f3d886092 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -5,7 +5,4 @@ # the repo. Unless a later match takes precedence, # @dotnet/install-scripts-maintainers will be requested # for review when someone opens a pull request. -* @dotnet/install-scripts-maintainers - -# The preview script is not owned by the maintainers of this repo -/src/install-dotnet-preview.sh @dotnet/dotnet-install-preview-contributors +* @dotnet/install-scripts-maintainers \ No newline at end of file diff --git a/docs/README.md b/docs/README.md index bd0cf2825b..5ecd3dd60e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,6 @@ [![Build Status](https://dev.azure.com/dnceng-public/public/_apis/build/status/73?branchName=main&label=Public)](https://dev.azure.com/dnceng-public/public/_build?definitionId=73) -This repo is the central place for dotnet install and install dotnet preview scripts. +This repo is the central place for the dotnet install. **Please be advised that the project is currently in maintenance mode. This implies that we are focusing on addressing high-priority bugs and providing assistance with any issues that may arise. During this phase, no new features or significant improvements are anticipated.** @@ -10,9 +10,3 @@ https://learn.microsoft.com/dotnet/core/tools/dotnet-install-script To download the latest stable versions of dotnet install, go to: - Bash (Linux/macOS): https://dot.net/v1/dotnet-install.sh - PowerShell (Windows): https://dot.net/v1/dotnet-install.ps1 - -Information about the usage of install dotnet preview is provided here: -https://github.com/dotnet/core/blob/main/release-notes/7.0/install-linux.md#install-using-debrpm-packages - -The latest stable versions of install dotnet preview is available here: -- https://builds.dotnet.microsoft.com/dotnet/release/install-preview/install-dotnet-preview.sh diff --git a/src/install-dotnet-preview.sh b/src/install-dotnet-preview.sh deleted file mode 100644 index d4519301b6..0000000000 --- a/src/install-dotnet-preview.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/usr/bin/env bash - -# System must first have curl installed. -# The following command will download the installation script and run it. -# curl -L https://dotnetcli.blob.core.windows.net/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/install-dotnet-$PRERELEASETYPE.sh -o install-dotnet-$PRERELEASETYPE.sh && bash install-dotnet-$PRERELEASETYPE.sh -# The script will -# - install any additional dependences needed for the script to continue -# - download a tar.gz containing the .NET preview installer packages to the current directory -# - expand the tar.gz into ./dotnet_packages -# - download the appropriate runtime dependency installer package into ./dotnet_packages -# - install the contents of ./dotnet_packages using rpm or dpkg as appropriate - - -if [ -n "$(command -v lsb_release)" ]; then - DISTRO_NAME=$(lsb_release -s -d) -elif [ -f "/etc/os-release" ]; then - DISTRO_NAME=$(grep PRETTY_NAME /etc/os-release | sed 's/PRETTY_NAME=//g' | tr -d '="') -elif [ -f "/etc/debian_version" ]; then - DISTRO_NAME="Debian $(cat /etc/debian_version)" -elif [ -f "/etc/redhat-release" ]; then - DISTRO_NAME=$(cat /etc/redhat-release) -else - DISTRO_NAME="$(uname -s) $(uname -r)" -fi - -PACKAGE_TYPE="" -DEPS_PACKAGE="" -DOWNLOAD_DIR=$PWD -DOTNET_PACKAGE_DIR="dotnet_packages" -SUPPORTED_DISTRO=1 - -DEPS_BUILD="25451.107" -PREVIEW_NUMBER="1" -PRERELEASETYPE="rc" # rc, preview - -declare -a ADDITIONAL_DEPS - -function distro_check() -{ - case $DISTRO_NAME in - *) SUPPORTED_DISTRO=0 ;; - esac -} - -function download_preview() -{ - case $PACKAGE_TYPE in - "rpm") - echo "*** Setting package type to rpm." - DOTNET_SRC="dotnet-10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER-rpm.tar.gz" - ;; - "deb") - echo "*** Setting package type to deb." - DOTNET_SRC="dotnet-10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER-deb.tar.gz" - ;; - *) - esac - - echo "*** Download source: ${DOTNET_SRC}" - echo - echo "*** Downloading https://dotnetcli.blob.core.windows.net/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/$DOTNET_SRC to $DOWNLOAD_DIR ..." - - curl "https://dotnetcli.blob.core.windows.net/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/"$DOTNET_SRC -o $DOWNLOAD_DIR/$DOTNET_SRC - - echo - echo "*** Unpacking ${DOTNET_SRC} ..." - echo - tar xvf $DOTNET_SRC -C $DOWNLOAD_DIR - echo - - if [ $PACKAGE_TYPE == "rpm" ] - then - echo "*** Downloading $DEPS_PACKAGE" - curl $DEPS_PACKAGE -o $DOWNLOAD_DIR/$DOTNET_PACKAGE_DIR/dotnet-runtime-deps.rpm - fi -} - - -function check_dependencies() -{ - for dependency in "${ADDITIONAL_DEPS[@]}" - do - - if [ $PACKAGE_TYPE == "rpm" ] - then - dep_found=$(rpm -qa | grep ${dependency} | wc -c ) - elif [ $PACKAGE_TYPE == "deb" ] - then - dep_found=$(dpkg --get-selections | grep "^${dependency}" | wc -c ) - fi - - if [ $dep_found == 0 ] - then - echo - echo "*** Installing ${dependency} ..." - echo - case "$1" in - *"openSUSE"* | *"SLES"* ) - zypper install -y ${dependency} - ;; - *"Fedora"*) - dnf install -y ${dependency} - ;; - *"CentOS"* | *"Oracle"*) - yum install -y ${dependency} - ;; - *"Debian"* | *"Ubuntu"* | *"Mint"*) - apt install -y ${dependency} - ;; - *) - esac - echo - else - echo "*** ${dependency} is already installed." - fi - done -} - -function install() -{ - if [ $PACKAGE_TYPE == "rpm" ] - then - rpm -ivh --replacepkgs $DOWNLOAD_DIR/$DOTNET_PACKAGE_DIR/* - elif [ $PACKAGE_TYPE == "deb" ] - then - apt install -y --allow-downgrades $DOWNLOAD_DIR/$DOTNET_PACKAGE_DIR/* - fi -} - -#-----------------------------------# - -distro_check -echo ${SUPPORTED_DISTRO} -if [ ${SUPPORTED_DISTRO} == 1 ] -then - echo - echo "*** Checking required system dependencies for detected OS: ${DISTRO_NAME} ..." - check_dependencies $DISTRO_NAME - echo - download_preview - echo - install -else - echo "The install-dotnet-preview script has been deprecated. Please use the dotnet-install script - https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script." -fi