logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

macos.sh (1172B)


  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. # Conflicts with arm-none-eabi toolchain from osx-cross
  10. brew uninstall --ignore-dependencies --cask gcc-arm-embedded >/dev/null 2>&1
  11. brew uninstall --ignore-dependencies homebrew/core/arm-none-eabi-gcc >/dev/null 2>&1
  12. brew uninstall --ignore-dependencies homebrew/core/arm-none-eabi-binutils >/dev/null 2>&1
  13. brew uninstall --ignore-dependencies osx-cross/arm/arm-gcc-bin@8 >/dev/null 2>&1
  14. brew update && brew upgrade --formulae
  15. }
  16. _qmk_install() {
  17. echo "Installing dependencies"
  18. # All macOS & Python dependencies are managed in the Homebrew package:
  19. # https://github.com/qmk/homebrew-qmk
  20. brew install qmk/qmk/qmk
  21. # Keg-only, so need to be manually linked
  22. brew link --force avr-gcc@8
  23. brew link --force arm-none-eabi-binutils
  24. brew link --force arm-none-eabi-gcc@8
  25. }