forked from mechmerlin/qmk_setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qmksetup_macos.sh
executable file
·60 lines (53 loc) · 1.96 KB
/
qmksetup_macos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh
# Install QMK Firmware Tools using Homebrew
#
# Script used by merlin36 of www.youtube.com/mechmerlin to easily setup an environment
# for QMK firmware tools in macOS.
#
# This installs Homebrew, Git, a text editor if you uncomment it, packages needed for
# qmk_firmware, and finally clones the qmk_firmware repo from GitHub. This process
# takes awhile.
#
# Intended User: A person new to the community or QMK with little to no programming
# experience seeking to just get this setup.
#
# Make sure you have administrative privileges, as you will be installing software
# on this machine.
#
# To execute:
# 1. Save file to Documents directory
# 2. Open up terminal app in Applications/Utilities
# 3. Navigate to Documents by typing in "cd Documents" followed by enter
# 4. Type `chmod +x ./qmksetup_macos.sh`, then enter
# 5. Type `./qmksetup_macos.sh`, then enter
#
# Example:
# you@someapplecomputer: chmod +x ./qmksetup_macos.sh
# you@someapplecomputer: ./qmksetup_macos.sh
#
echo "Installing Homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Installing brew cask..."
brew tap caskroom/cask
#Dev Tools
echo "Installing QMK SW Development Tools..."
brew install git
#Uncomment your favorite editor or use your own!
#brew cask install emacs
#brew cask install macvim
#brew cask install visual-studio-code
#QMK Firmware Environment Setup on macOS
echo "Installing QMK Keyboard Firmware Tools..."
brew tap osx-cross/avr
brew tap PX4/homebrew-px4
brew update
brew install avr-gcc
brew install dfu-programmer
brew install dfu-util
brew install avrdude
brew install gcc-arm-none-eabi
#Clone QMK Firmware from Master - It is recommended to fork the repo and then clone from your fork
echo "Cloning qmk_firmware from Github..."
git clone https://github.com/qmk/qmk_firmware.git
echo "Congratulations! You are ready to use QMK!"
echo "Please visit https://docs.qmk.fm"