3 download_dir = wsl_downloaded
5 function install_utils {
11 echo "Installing dfu-programmer"
12 wget 'http://downloads.sourceforge.net/project/dfu-programmer/dfu-programmer/0.7.2/dfu-programmer-win-0.7.2.zip'
13 7z x -odfu-programmer dfu-programmer-win-0.7.2.zip
15 echo "Installing dfu-util"
16 wget 'http://dfu-util.sourceforge.net/releases/dfu-util-0.9-win64.zip'
17 7z x dfu-util-0.9-win64.zip
19 echo "Installing teensy_loader_cli"
20 wget 'https://www.pjrc.com/teensy/teensy_loader_cli_windows.zip'
21 7z x teensy_loader_cli_windows.zip
23 echo "Installing Atmel Flip"
24 wget 'http://www.atmel.com/images/Flip%20Installer%20-%203.4.7.112.exe'
25 7z x -oFlip Flip\ Installer\ -\ 3.4.7.112.exe
27 echo "Downloading the QMK driver installer"
28 wget -qO- https://api.github.com/repos/qmk/qmk_driver_installer/releases | grep browser_download_url | head -n 1 | cut -d '"' -f 4 | wget -i -
31 rm Flip\ Installer\ -\ 3.4.7.112.exe
36 function make_environment {
39 echo "Installing dependencies (p7zip-full, wget)"
40 echo "This will ask for the sudo password"
41 sudo apt-get install p7zip-full wget
43 dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
45 if [[ $dir != /mnt/* ]];
48 echo "You need to clone the qmk_firmware repository outside the linux filesystem."
49 echo "Otherwise the windows executables can't be run."