aboutsummaryrefslogtreecommitdiff
path: root/util/install/macos.sh
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-11-27 01:37:54 +1100
committerGitHub <noreply@github.com>2020-11-26 14:37:54 +0000
commitc21d5a09735e84412ee5b3efb4c3f5d3fc734393 (patch)
treec2b8405f45fb6f00b063561056fca4c5aad28bf8 /util/install/macos.sh
parent3afe0ea9b9f67ae33f54c1393b15d988764241a2 (diff)
downloadqmk_firmware-c21d5a09735e84412ee5b3efb4c3f5d3fc734393.tar.gz
qmk_firmware-c21d5a09735e84412ee5b3efb4c3f5d3fc734393.zip
Refactor qmk_install.sh (#10681)
Diffstat (limited to 'util/install/macos.sh')
-rwxr-xr-xutil/install/macos.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/util/install/macos.sh b/util/install/macos.sh
new file mode 100755
index 000000000..93fda9121
--- /dev/null
+++ b/util/install/macos.sh
@@ -0,0 +1,26 @@
1#!/bin/bash
2
3_qmk_install_prepare() {
4 echo "Checking Homebrew installation"
5
6 if ! brew --version >/dev/null 2>&1; then
7 echo "Error! Homebrew is broken or not installed."
8 echo "Please run \`brew doctor\` or follow the installation instructions at https://brew.sh/, then re-run this script."
9 return 1
10 fi
11
12 brew update && brew upgrade
13}
14
15_qmk_install() {
16 echo "Installing dependencies"
17
18 # All macOS dependencies are managed in the Homebrew package:
19 # https://github.com/qmk/homebrew-qmk
20 brew install qmk/qmk/qmk
21
22 brew link --force avr-gcc@8
23 brew link --force arm-gcc-bin@8
24
25 python3 -m pip install -r $QMK_FIRMWARE_DIR/requirements.txt
26}