diff options
Diffstat (limited to 'util/install/msys2.sh')
-rwxr-xr-x | util/install/msys2.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/util/install/msys2.sh b/util/install/msys2.sh new file mode 100755 index 000000000..203f8eff0 --- /dev/null +++ b/util/install/msys2.sh | |||
@@ -0,0 +1,35 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | _qmk_install_prepare() { | ||
4 | pacman -Syu $MSYS2_CONFIRM | ||
5 | } | ||
6 | |||
7 | _qmk_install() { | ||
8 | echo "Installing dependencies" | ||
9 | |||
10 | pacman --needed --noconfirm --disable-download-timeout -S pactoys-git | ||
11 | pacboy sync --needed --noconfirm --disable-download-timeout \ | ||
12 | base-devel: toolchain:x clang:x git: unzip: python3-pip:x \ | ||
13 | avr-binutils:x avr-gcc:x avr-libc:x arm-none-eabi-binutils:x \ | ||
14 | arm-none-eabi-gcc:x arm-none-eabi-newlib:x avrdude:x bootloadhid:x \ | ||
15 | dfu-programmer:x dfu-util:x teensy-loader-cli:x hidapi:x | ||
16 | |||
17 | _qmk_install_drivers | ||
18 | |||
19 | python3 -m pip install -r "$QMK_FIRMWARE_DIR/requirements.txt" | ||
20 | } | ||
21 | |||
22 | _qmk_install_drivers() { | ||
23 | echo "Installing drivers" | ||
24 | |||
25 | tmpdir=$(mktemp -d) | ||
26 | cp "$QMK_FIRMWARE_UTIL_DIR/drivers.txt" $tmpdir | ||
27 | pushd $tmpdir > /dev/null | ||
28 | |||
29 | wget "https://github.com/qmk/qmk_driver_installer/releases/download/v1.01/qmk_driver_installer.exe" | ||
30 | |||
31 | cmd.exe //c "qmk_driver_installer.exe --all --force drivers.txt" | ||
32 | |||
33 | popd > /dev/null | ||
34 | rm -r $tmpdir | ||
35 | } | ||