You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
984 B

6 years ago
  1. #!/bin/bash
  2. util_dir=$(dirname "$0")
  3. echo "Installing dependencies needed for the installation"
  4. pacman --needed --noconfirm --disable-download-timeout -Sy \
  5. base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-clang git unzip \
  6. mingw-w64-x86_64-python-pip \
  7. mingw-w64-x86_64-avr-binutils mingw-w64-x86_64-avr-gcc mingw-w64-x86_64-avr-libc \
  8. mingw-w64-x86_64-arm-none-eabi-binutils mingw-w64-x86_64-arm-none-eabi-gcc mingw-w64-x86_64-arm-none-eabi-newlib \
  9. mingw-w64-x86_64-avrdude mingw-w64-x86_64-bootloadhid mingw-w64-x86_64-dfu-programmer mingw-w64-x86_64-dfu-util mingw-w64-x86_64-teensy-loader-cli
  10. echo "Installing drivers"
  11. tmpdir=$(mktemp -d)
  12. cp "${util_dir}/drivers.txt" $tmpdir
  13. pushd $tmpdir > /dev/null
  14. wget "https://github.com/qmk/qmk_driver_installer/releases/download/v1.01/qmk_driver_installer.exe"
  15. cmd.exe //c "qmk_driver_installer.exe --all --force drivers.txt"
  16. popd > /dev/null
  17. rm -r $tmpdir
  18. pip3 install -r "${util_dir}/../requirements.txt"