mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-27 11:38:58 +06:00
db1eacdaac
* Align our subprocess usage with current best practices. * remove unused import * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> * fix the cpp invocation for older python * allow for unprompted installation * make sure qmk new-keyboard works on windows Co-authored-by: Ryan <fauxpark@gmail.com>
19 lines
445 B
Bash
Executable File
19 lines
445 B
Bash
Executable File
#!/bin/bash
|
|
|
|
_qmk_install_prepare() {
|
|
sudo pkg update $SKIP_PROMPT
|
|
}
|
|
|
|
_qmk_install() {
|
|
echo "Installing dependencies"
|
|
|
|
sudo pkg install -y \
|
|
git wget gmake gcc zip unzip diffutils \
|
|
python3 \
|
|
avr-binutils avr-gcc avr-libc \
|
|
arm-none-eabi-binutils arm-none-eabi-gcc arm-none-eabi-newlib \
|
|
avrdude dfu-programmer dfu-util
|
|
|
|
sudo python3 -m pip install -r $QMK_FIRMWARE_DIR/requirements.txt
|
|
}
|