[macOS] Remove macOS 10.14 related code in the VE repo (#4816)

* [MacOS] Remove code for macOS-10.14

* remove is_Less_BigSur in all script

* remove variable the IsLessThanBigSur
This commit is contained in:
V-Zabayrachny
2021-12-30 10:36:59 +03:00
committed by GitHub
parent 29dbc46881
commit 3c2f1c6350
24 changed files with 33 additions and 1127 deletions

View File

@@ -1,22 +1,11 @@
#!/bin/bash -e -o pipefail
source ~/utils/utils.sh
if is_Less_Catalina; then
echo Installing the latest Node JS 8...
TMP_FILE=/tmp/node-v8.17.0.pkg
NODEURL=https://nodejs.org/dist/latest-v8.x/node-v8.17.0.pkg
download_with_retries $NODEURL "/tmp"
sudo installer -pkg "${TMP_FILE}" -target /
rm -rf "${TMP_FILE}"
sudo chown -R $USER "/usr/local/lib/node_modules"
else
# Install default Node.js for macOS >= 10.15
defaultVersion=$(get_toolset_value '.node.default')
defaultVersion=$(get_toolset_value '.node.default')
echo "Installing Node.js $defaultVersion"
brew_smart_install "node@$defaultVersion"
brew link node@$defaultVersion --force
fi
echo "Installing Node.js $defaultVersion"
brew_smart_install "node@$defaultVersion"
brew link node@$defaultVersion --force
echo Installing yarn...
curl -o- -L https://yarnpkg.com/install.sh | bash