aboutsummaryrefslogtreecommitdiff
path: root/util/install/msys2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/install/msys2.sh')
-rwxr-xr-xutil/install/msys2.sh35
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}