summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Andrews <NoahAndrews@users.noreply.github.com>2016-02-26 01:53:18 -0500
committerNoah Andrews <NoahAndrews@users.noreply.github.com>2016-02-26 01:53:18 -0500
commitb7a94a1f0094649779559cc65fd2fe7b91061d0a (patch)
tree037ff2eab4447e2eca1c658396ef4e8da830ef0e
parent37c8a232764d8c614d6e1183e80bab89d901cbee (diff)
Added Windows environment setup script
-rw-r--r--setup-environment-win.bat28
1 files changed, 28 insertions, 0 deletions
diff --git a/setup-environment-win.bat b/setup-environment-win.bat
new file mode 100644
index 0000000000..ae803da6f8
--- /dev/null
+++ b/setup-environment-win.bat
@@ -0,0 +1,28 @@
+@echo off
+setx /M test test > nul 2>&1
+if NOT ["%errorlevel%"]==["0"] (
+ echo FAILED. Rerun with administrator privileges.
+ pause
+ exit
+)
+
+mingw-get install mingw32-make-bin mingw32-gcc-bin msys-wget-bin msys-unzip-bin
+cd \MinGW\bin
+
+REM It would be somewhat better to use symlinks, but then it wouldn't work in XP or Vista.
+copy mingw32-make.exe make.exe
+
+mkdir temp
+cd temp
+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 ..
+
+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
+
+pnputil -i -a dfu-prog-usb-1.2.2\atmel_usb_dfu.inf
+
+cd ..
+rm -rf temp \ No newline at end of file