Parsing correct all the downloads.

This commit is contained in:
Glen De Cauwsemaecker 2014-03-25 01:06:22 +01:00
parent 0bdc4fe4fc
commit e16c0dc66a
6 changed files with 38 additions and 23 deletions

View file

@ -9,12 +9,12 @@
python=http://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi python=http://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi
[general] [general]
gitbash=https://msysgit.googlecode.com/files/Git-1.8.5.2-preview20131230.exe gitbash=https://msysgit.googlecode.com/files/Git-1.8.5.2-preview20131230.exe
[win7] [Win7]
[32] [32]
mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip
[64] [64]
mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.5.4.zip mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.5.4.zip
[vista] [Vista]
[64] [64]
mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2.5.4.zip mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2.5.4.zip
[32] [32]

View file

@ -7,8 +7,13 @@
prefix=The operating system prefix=The operating system
sufix=was detected. sufix=was detected.
xp=We don't support Windows XP, installation cancelled. xp=We don't support Windows XP, installation cancelled.
[intro] [process]
1=CodeCombat couldn't be developed without third-party software. 1=CodeCombat couldn't be developed without third-party software.
2=That's why you'll need to install this software, 2=That's why you'll need to install this software,
3=in order to start contributing to our community. 3=in order to start contributing to our community.
4=Cancel the installation if you already have the application. 4=Cancel the installation if you already have the application.
prefix=Do you already have the latest version of
sufix=installed?
[end]
succesfull=The setup of the CodeCombat Dev. Environment was succesfull.
thankyou=Thank you already for your contribution and see you soon.

View file

@ -7,8 +7,13 @@
prefix=Het besturingsysteem prefix=Het besturingsysteem
sufix=is gedetecteerd. sufix=is gedetecteerd.
xp=Wij ondersteunen Windows XP niet, installatie geanulleerd. xp=Wij ondersteunen Windows XP niet, installatie geanulleerd.
[intro] [process]
1=CodeCombat kon niet worden ontwikkeld zonder third-party software. 1=CodeCombat kon niet worden ontwikkeld zonder third-party software.
2=Dat is waarom je deze software moet installeren, 2=Dat is waarom je deze software moet installeren,
3=zodat je je kan beginnen met het bijdragen tot onze gemeenschap. 3=zodat je je kan beginnen met het bijdragen tot onze gemeenschap.
4=Annuleer de installatie als je de applicatie al hebt. 4=Annuleer de installatie als je de applicatie al hebt.
prefix=Heb je al de laatste versie van
sufix=geinstalleerd?
[end]
succesfull=De installatie van de CodeCombat-Ontwikkelings omgeving was succesvol.
thankyou=Alvast bedankt voor al je werk en tot binnenkort.

View file

@ -4,6 +4,10 @@ if NOT exist "%temp_directory%" (
md "%temp_directory%" md "%temp_directory%"
) )
call get_local_text install-process-prefix
call get_local_text install-process-sufix
call ask_question "!install_process_prefix! %1 !install_process_sufix!"
call print_dashed_seperator
rmdir /s /q "%temp_directory%" rmdir /s /q "%temp_directory%"

View file

@ -10,24 +10,20 @@ if %system_info_os% == XP (
call print_exit call print_exit
) )
call get_category ..\\config\\downloads.coco downloads downloads_count download_names download_names_count general-general general-%system_info_bit% %system_info_os%-%system_info_bit% call get_category ..\\config\\downloads.coco downloads download_names downloads_count general-general general-%system_info_bit% %system_info_os%-%system_info_bit%
call get_local_text install-intro-1 call get_local_text install-process-1
call get_local_text install-intro-2 call get_local_text install-process-2
call get_local_text install-intro-3 call get_local_text install-process-3
call get_local_text install-intro-4 call get_local_text install-process-4
echo !install_intro_1! echo !install_process_1!
echo !install_intro_2! echo !install_process_2!
echo !install_intro_3! echo !install_process_3!
echo !install_intro_4! echo !install_process_4!
call print_dashed_seperator call print_dashed_seperator
set "temp_directory = C:\\.tmp\\coco" for /l %%i in (1, 1, !downloads_count!) do (
call download_and_install_app !download_names[%%i]! !downloads[%%i]!
call download_and_install_app )
::for /l %%i in (1, 1, %downloads_count%) do (
:: echo %downloads[%%i]%
::)

View file

@ -24,6 +24,11 @@ call get_language
call download_and_install_applications call download_and_install_applications
pause call get_local_text end-succesfull
call get_local_text end-thankyou
echo %end_succesfull%
echo %end_thankyou%
call print_exit
endlocal endlocal