Initial setup of the new windows development approach.

This commit is contained in:
GlenDC 2014-02-02 00:47:10 +01:00
parent f8f3bdd1e3
commit 83b7ac35aa
3 changed files with 17 additions and 10 deletions

Binary file not shown.

Binary file not shown.

View file

@ -8,6 +8,13 @@ set "tab-string= "
set "seperator-string=----------------------------------------------------------------------------"
set "seperator-string-cmd=-------------------------------------------"
:: set correct curl app
IF EXIST "%PROGRAMFILES(X86)%" (
(set "curl-app=curl\64bit\curl.exe")
) ELSE (
set "curl-app=curl\32bit\curl.exe"
)
:: Create The Temporary Directory
IF EXIST %temp-dir% rmdir %temp-dir% /s /q
mkdir %temp-dir%
@ -29,7 +36,7 @@ echo %seperator-string% >> %install-log%
:: [TODO] The choice between Cygwin && Git ?! Is
echo downloading: Git... >> %install-log%
echo %seperator-string% >> %install-log%
curl https://msysgit.googlecode.com/files/Git-1.8.5.2-preview20131230.exe -o %temp-dir%\git-setup.exe
%curl-app% "http://msysgit.googlecode.com/files/Git-1.8.5.2-preview20131230.exe" -o %temp-dir%\git-setup.exe
:: [TODO] Add downloads for windows visual studio ?!
@ -41,10 +48,10 @@ IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
echo 32-bit computer detected... >> %install-log%
echo %tab-string%downloading: node-js... >> %install-log%
curl http://nodejs.org/dist/v0.10.24/x64/node-v0.10.24-x64.msi -o %temp-dir%\node-js-setup.exe
%curl-app% http://nodejs.org/dist/v0.10.24/x64/node-v0.10.24-x64.msi -o %temp-dir%\node-js-setup.exe
echo %tab-string%downloading: ruby... >> %install-log%
curl http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.0.0-p353-x64.exe?direct -o %temp-dir%\ruby-setup.exe
%curl-app% http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.0.0-p353-x64.exe?direct -o %temp-dir%\ruby-setup.exe
:: Some installations require specific windows versions
for /f "tokens=4-5 delims=. " %%i in ('ver') do set VERSION=%%i.%%j
@ -76,10 +83,10 @@ GOTO END
echo 64-bit computer detected... >> %install-log%
echo %tab-string%downloading: node-js... >> %install-log%
curl http://nodejs.org/dist/v0.10.24/node-v0.10.24-x86.msi -o %temp-dir%\node-js-setup.exe
%curl-app% http://nodejs.org/dist/v0.10.24/node-v0.10.24-x86.msi -o %temp-dir%\node-js-setup.exe
echo %tab-string%downloading: ruby... >> %install-log%
curl http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.0.0-p353.exe?direct -o %temp-dir%\ruby-setup.exe
%curl-app% http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.0.0-p353.exe?direct -o %temp-dir%\ruby-setup.exe
:: Some installations require specific windows versions
for /f "tokens=4-5 delims=. " %%i in ('ver') do set VERSION=%%i.%%j
@ -110,12 +117,12 @@ GOTO END
:ver_Win7_8_32
echo %tab-string%%tab-string%downloading: mongo-db... >> %install-log%
curl http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip -o %temp-dir%\mongodb-setup.zip
%curl-app% http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip -o %temp-dir%\mongodb-setup.zip
goto instal_dev_environment
:ver_Vista_32
echo %tab-string%%tab-string%downloading: mongo-db... >> %install-log%
curl http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip -o %temp-dir%\mongodb-setup.zip
%curl-app% http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip -o %temp-dir%\mongodb-setup.zip
goto instal_dev_environment
:ver_XP_32
@ -126,12 +133,12 @@ goto END
:ver_Win7_8_64
echo %tab-string%%tab-string%downloading: mongo-db... >> %install-log%
curl http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.5.4.zip -o %temp-dir%\mongodb-setup.zip
%curl-app% http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.5.4.zip -o %temp-dir%\mongodb-setup.zip
goto instal_dev_environment
:ver_Vista_64
echo %tab-string%%tab-string%downloading: mongo-db... >> %install-log%
curl http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2.5.4.zip -o %temp-dir%\mongodb-setup.zip
%curl-app% http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2.5.4.zip -o %temp-dir%\mongodb-setup.zip
goto instal_dev_environment
:ver_XP_64
@ -199,5 +206,5 @@ goto END
goto END
:END
PAUSE
endlocal