1
0
Fork 0
forked from forks/qmk_firmware
qmk_firmware/util/msys2_install.sh

23 lines
984 B
Bash
Raw Normal View History

#!/bin/bash
util_dir=$(dirname "$0")
2017-07-10 17:16:35 +02:00
echo "Installing dependencies needed for the installation"
pacman --needed --noconfirm --disable-download-timeout -Sy \
base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-clang git unzip \
mingw-w64-x86_64-python-pip \
mingw-w64-x86_64-avr-binutils mingw-w64-x86_64-avr-gcc mingw-w64-x86_64-avr-libc \
mingw-w64-x86_64-arm-none-eabi-binutils mingw-w64-x86_64-arm-none-eabi-gcc mingw-w64-x86_64-arm-none-eabi-newlib \
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
2017-07-11 15:44:46 +02:00
echo "Installing drivers"
tmpdir=$(mktemp -d)
cp "${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
2017-07-10 17:05:32 +02:00
pip3 install -r "${util_dir}/../requirements.txt"