2021-07-06 20:56:13 +06:00
|
|
|
#!/usr/bin/env bash
|
2020-11-26 20:37:54 +06:00
|
|
|
|
|
|
|
_qmk_install_prepare() {
|
|
|
|
echo "Checking Homebrew installation"
|
|
|
|
|
|
|
|
if ! brew --version >/dev/null 2>&1; then
|
|
|
|
echo "Error! Homebrew is broken or not installed."
|
|
|
|
echo "Please run \`brew doctor\` or follow the installation instructions at https://brew.sh/, then re-run this script."
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
2024-05-19 11:23:24 +06:00
|
|
|
brew update && brew upgrade --formulae
|
2020-11-26 20:37:54 +06:00
|
|
|
}
|
|
|
|
|
|
|
|
_qmk_install() {
|
|
|
|
echo "Installing dependencies"
|
|
|
|
|
|
|
|
# All macOS dependencies are managed in the Homebrew package:
|
|
|
|
# https://github.com/qmk/homebrew-qmk
|
|
|
|
brew install qmk/qmk/qmk
|
|
|
|
|
2023-09-01 05:26:48 +06:00
|
|
|
# Conflicts with new toolchain formulae
|
|
|
|
brew uninstall --ignore-dependencies arm-gcc-bin@8 >/dev/null 2>&1
|
|
|
|
|
|
|
|
# Keg-only, so need to be manually linked
|
2020-11-26 20:37:54 +06:00
|
|
|
brew link --force avr-gcc@8
|
2023-09-01 05:26:48 +06:00
|
|
|
brew link --force arm-none-eabi-binutils
|
|
|
|
brew link --force arm-none-eabi-gcc@8
|
2020-11-26 20:37:54 +06:00
|
|
|
|
|
|
|
python3 -m pip install -r $QMK_FIRMWARE_DIR/requirements.txt
|
|
|
|
}
|