mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-25 01:47:10 +06:00
aa28335651
Add a fix for `brew upgrade` so only formulae is upgraded and not casks
27 lines
736 B
Bash
Executable File
27 lines
736 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
_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
|
|
|
|
brew update && brew upgrade --formulae --ignore-pinned
|
|
}
|
|
|
|
_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
|
|
}
|