X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=util%2Fmacos_install.sh;h=f7e3044249d5f6f30af498fc602948435b2e193f;hb=a25dd58bc56b0c4010673723ac44eaff914979bb;hp=551b84b5aa3a2d3bb49ca9e1277caad469f0d7a8;hpb=08e48eb6f534c7eeb692e8e63b81f41110dcb5e3;p=qmk_firmware.git diff --git a/util/macos_install.sh b/util/macos_install.sh index 551b84b5a..f7e304424 100755 --- a/util/macos_install.sh +++ b/util/macos_install.sh @@ -1,6 +1,8 @@ #!/bin/bash -if brew --version 2>&1 > /dev/null; then +util_dir=$(dirname "$0") + +if ! brew --version 2>&1 > /dev/null; then echo "Error! Homebrew not installed or broken!" echo -n "Would you like to install homebrew now? [y/n] " while read ANSWER; do @@ -15,11 +17,13 @@ if brew --version 2>&1 > /dev/null; then *) echo -n "Would you like to install homebrew now? [y/n] " ;; - esac + esac done fi brew tap osx-cross/avr brew tap PX4/homebrew-px4 brew update -brew install avr-gcc gcc-arm-none-eabi dfu-programmer avrdude +brew install avr-gcc@8 gcc-arm-none-eabi dfu-programmer avrdude dfu-util python3 +brew link --force avr-gcc@8 +pip3 install -r ${util_dir}/../requirements.txt