forked from forks/qmk_firmware
7a25dcacff
* stash poc * stash * tidy up implementation * Tidy up slightly for review * Tidy up slightly for review * Bodge environment to make tests pass * Refactor away from asyncio due to windows issues * Filter devices * align vid/pid printing * Add hidapi to the installers * start preparing for multiple hid_listeners * udev rules for hid_listen * refactor to move closer to end state * very basic implementation of the threaded model * refactor how vid/pid/index are supplied and parsed * windows improvements * read the report directly when usage page isn't available * add per-device colors, the choice to show names or numbers, and refactor * add timestamps * Add support for showing bootloaders * tweak the color for bootloaders * Align bootloader disconnect with connect color * add support for showing all bootloaders * fix the pyusb check * tweaks * fix exception * hide a stack trace behind -v * add --no-bootloaders option * add documentation for qmk console * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> * pyformat * clean up and flesh out KNOWN_BOOTLOADERS Co-authored-by: zvecr <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com>
36 lines
1,007 B
Bash
Executable file
36 lines
1,007 B
Bash
Executable file
#!/bin/bash
|
|
|
|
_qmk_install_prepare() {
|
|
pacman -Syu
|
|
}
|
|
|
|
_qmk_install() {
|
|
echo "Installing dependencies"
|
|
|
|
pacman --needed --noconfirm --disable-download-timeout -S pactoys-git
|
|
pacboy sync --needed --noconfirm --disable-download-timeout \
|
|
base-devel: toolchain:x clang:x git: unzip: python3-pip:x \
|
|
avr-binutils:x avr-gcc:x avr-libc:x arm-none-eabi-binutils:x \
|
|
arm-none-eabi-gcc:x arm-none-eabi-newlib:x avrdude:x bootloadhid:x \
|
|
dfu-programmer:x dfu-util:x teensy-loader-cli:x hidapi:x
|
|
|
|
_qmk_install_drivers
|
|
|
|
python3 -m pip install -r "$QMK_FIRMWARE_DIR/requirements.txt"
|
|
}
|
|
|
|
_qmk_install_drivers() {
|
|
echo "Installing drivers"
|
|
|
|
tmpdir=$(mktemp -d)
|
|
cp "$QMK_FIRMWARE_UTIL_DIR/drivers.txt" $tmpdir
|
|
pushd $tmpdir > /dev/null
|
|
|
|
wget "https://github.com/qmk/qmk_driver_installer/releases/download/v1.01/qmk_driver_installer.exe"
|
|
|
|
cmd.exe //c "qmk_driver_installer.exe --all --force drivers.txt"
|
|
|
|
popd > /dev/null
|
|
rm -r $tmpdir
|
|
}
|