2021-07-06 20:56:13 +06:00
|
|
|
#!/usr/bin/env bash
|
2020-11-26 20:37:54 +06:00
|
|
|
|
|
|
|
_qmk_install_prepare() {
|
2021-05-20 04:24:46 +06:00
|
|
|
pacman -Syu $MSYS2_CONFIRM
|
2020-11-26 20:37:54 +06:00
|
|
|
}
|
|
|
|
|
|
|
|
_qmk_install() {
|
|
|
|
echo "Installing dependencies"
|
|
|
|
|
2022-07-02 20:08:05 +06:00
|
|
|
pacman --needed --noconfirm --disable-download-timeout -S pactoys
|
2020-11-26 20:37:54 +06:00
|
|
|
pacboy sync --needed --noconfirm --disable-download-timeout \
|
2022-07-02 20:08:05 +06:00
|
|
|
base-devel: toolchain:x clang:x python-qmk:x hidapi: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 hid-bootloader-cli:x mdloader:x teensy-loader-cli:x wb32-dfu-updater:x
|
2020-11-26 20:37:54 +06:00
|
|
|
|
|
|
|
_qmk_install_drivers
|
|
|
|
}
|
|
|
|
|
|
|
|
_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
|
|
|
|
}
|