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.

31 lines
949 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. # Conflicts with new toolchain formulae
  17. brew uninstall --ignore-dependencies arm-gcc-bin@8 >/dev/null 2>&1
  18. # Keg-only, so need to be manually linked
  19. brew link --force avr-gcc@8
  20. brew link --force arm-none-eabi-binutils
  21. brew link --force arm-none-eabi-gcc@8
  22. python3 -m pip install -r $QMK_FIRMWARE_DIR/requirements.txt
  23. }