diff options
author | Ryan <[email protected]> | 2020-11-27 01:37:54 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-26 14:37:54 +0000 |
commit | c21d5a09735e84412ee5b3efb4c3f5d3fc734393 (patch) | |
tree | c2b8405f45fb6f00b063561056fca4c5aad28bf8 /util/install/macos.sh | |
parent | 3afe0ea9b9f67ae33f54c1393b15d988764241a2 (diff) | |
download | qmk_firmware-c21d5a09735e84412ee5b3efb4c3f5d3fc734393.tar.gz qmk_firmware-c21d5a09735e84412ee5b3efb4c3f5d3fc734393.zip |
Refactor qmk_install.sh (#10681)0.10.54
Diffstat (limited to 'util/install/macos.sh')
-rwxr-xr-x | util/install/macos.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/util/install/macos.sh b/util/install/macos.sh new file mode 100755 index 0000000000..93fda91215 --- /dev/null +++ b/util/install/macos.sh @@ -0,0 +1,26 @@ +#!/bin/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 +} + +_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 +} |