diff options
author | Noah Andrews <NoahAndrews@users.noreply.github.com> | 2016-03-28 18:37:39 -0400 |
---|---|---|
committer | Noah Andrews <NoahAndrews@users.noreply.github.com> | 2016-03-28 18:37:39 -0400 |
commit | 535daad3cd812df58f4630df202a447836ac3084 (patch) | |
tree | 4591f47555acb1d88f08caa7ab3bbb40fd828637 /2-setup-environment-win.bat | |
parent | ccf848917b7e931327f6c4a469877e9d8ef238ea (diff) | |
parent | 4a43c5684476611370820bd9592712754c211c52 (diff) | |
download | qmk_firmware-535daad3cd812df58f4630df202a447836ac3084.tar.gz |
Merge remote-tracking branch 'jackhumbert/master' into improve-buildguide
Diffstat (limited to '2-setup-environment-win.bat')
-rw-r--r-- | 2-setup-environment-win.bat | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/2-setup-environment-win.bat b/2-setup-environment-win.bat new file mode 100644 index 000000000..91b6c91e3 --- /dev/null +++ b/2-setup-environment-win.bat @@ -0,0 +1,41 @@ +@echo off +setx /M test test > nul 2>&1 +if NOT ["%errorlevel%"]==["0"] ( + echo FAILED. Rerun with administrator privileges. + pause + exit +) + +echo ------------------------------------------ +echo Installing wget and unzip +echo ------------------------------------------ +mingw-get install msys-wget-bin msys-unzip-bin +cd \MinGW\bin + +mkdir temp +cd temp +echo ------------------------------------------ +echo Installing dfu-programmer. +echo ------------------------------------------ +wget http://iweb.dl.sourceforge.net/project/dfu-programmer/dfu-programmer/0.7.2/dfu-programmer-win-0.7.2.zip +unzip dfu-programmer-win-0.7.2.zip +copy dfu-programmer.exe .. + +echo ------------------------------------------ +echo Downloading driver +echo ------------------------------------------ +wget http://iweb.dl.sourceforge.net/project/libusb-win32/libusb-win32-releases/1.2.6.0/libusb-win32-bin-1.2.6.0.zip +unzip libusb-win32-bin-1.2.6.0.zip +cp libusb-win32-bin-1.2.6.0\bin\x86\libusb0_x86.dll ../libusb0.dll + +echo ------------------------------------------ +echo Installing driver. Accept prompt. +echo ------------------------------------------ +pnputil -i -a dfu-prog-usb-1.2.2\atmel_usb_dfu.inf + +cd .. +rm -rf temp + +echo ------------------------------------------ +echo Finished! +pause
\ No newline at end of file |