You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
736 B

  1. #!/usr/bin/env bash
  2. _qmk_install_prepare() {
  3. echo "Checking Homebrew installation"
  4. if ! brew --version >/dev/null 2>&1; then
  5. echo "Error! Homebrew is broken or not installed."
  6. echo "Please run \`brew doctor\` or follow the installation instructions at https://brew.sh/, then re-run this script."
  7. return 1
  8. fi
  9. brew update && brew upgrade --formulae --ignore-pinned
  10. }
  11. _qmk_install() {
  12. echo "Installing dependencies"
  13. # All macOS dependencies are managed in the Homebrew package:
  14. # https://github.com/qmk/homebrew-qmk
  15. brew install qmk/qmk/qmk
  16. brew link --force avr-gcc@8
  17. brew link --force arm-gcc-bin@8
  18. python3 -m pip install -r $QMK_FIRMWARE_DIR/requirements.txt
  19. }