2020-10-15 19:00:36 +03:00
|
|
|
#!/bin/bash -e -o pipefail
|
|
|
|
|
|
2020-12-28 10:54:25 +03:00
|
|
|
source ~/utils/utils.sh
|
|
|
|
|
|
2023-05-12 13:30:13 +02:00
|
|
|
arch=$(get_arch)
|
|
|
|
|
|
2020-09-10 14:34:08 +03:00
|
|
|
echo "Installing Homebrew..."
|
|
|
|
|
HOMEBREW_INSTALL_URL="https://raw.githubusercontent.com/Homebrew/install/master/install.sh"
|
|
|
|
|
/bin/bash -c "$(curl -fsSL ${HOMEBREW_INSTALL_URL})"
|
|
|
|
|
|
2023-05-12 13:30:13 +02:00
|
|
|
if [[ $arch == "arm64" ]]; then
|
|
|
|
|
/opt/homebrew/bin/brew update
|
|
|
|
|
/opt/homebrew/bin/brew upgrade
|
|
|
|
|
/opt/homebrew/bin/brew upgrade --cask
|
|
|
|
|
/opt/homebrew/bin/brew cleanup
|
|
|
|
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
|
|
|
fi
|
|
|
|
|
|
2023-07-07 16:24:33 +02:00
|
|
|
git clone https://github.com/Homebrew/homebrew-cask $(brew --repository)/Library/Taps/homebrew/homebrew-cask --origin=origin --template= --config core.fsmonitor=false --depth 1
|
|
|
|
|
git clone https://github.com/Homebrew/homebrew-core $(brew --repository)/Library/Taps/homebrew/homebrew-core --origin=origin --template= --config core.fsmonitor=false --depth 1
|
|
|
|
|
|
|
|
|
|
brew tap homebrew/cask
|
|
|
|
|
brew tap homebrew/core
|
|
|
|
|
|
2020-10-15 19:00:36 +03:00
|
|
|
echo "Disabling Homebrew analytics..."
|
2020-09-10 14:34:08 +03:00
|
|
|
brew analytics off
|
|
|
|
|
|
2020-12-23 22:14:13 +07:00
|
|
|
# jq is required for further installation scripts
|
|
|
|
|
echo "Installing jq..."
|
|
|
|
|
brew install jq
|
|
|
|
|
|
|
|
|
|
echo "Installing curl..."
|
2021-09-24 13:56:16 +03:00
|
|
|
brew install curl
|
2020-09-10 14:34:08 +03:00
|
|
|
|
2020-10-15 19:00:36 +03:00
|
|
|
echo "Installing wget..."
|
2020-12-28 10:54:25 +03:00
|
|
|
brew_smart_install "wget"
|
2020-09-10 14:34:08 +03:00
|
|
|
|
|
|
|
|
# init brew bundle feature
|
|
|
|
|
brew tap Homebrew/bundle
|