2021-07-06 16:56:13 +02:00
|
|
|
#!/usr/bin/env bash
|
2020-11-26 15:37:54 +01: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
|
|
|
|
|
2021-01-03 21:30:59 +01:00
|
|
|
brew update && brew upgrade --ignore-pinned
|
2020-11-26 15:37:54 +01: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
|
|
|
|
|
|
|
|
brew link --force avr-gcc@8
|
|
|
|
brew link --force arm-gcc-bin@8
|
|
|
|
|
|
|
|
python3 -m pip install -r $QMK_FIRMWARE_DIR/requirements.txt
|
|
|
|
}
|