This commit is contained in:
Scott Erickson 2014-04-12 10:52:45 -07:00
commit 00d3c48a0c
29 changed files with 217 additions and 41 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<variables>
<version>3.4</version>
<version>3.5</version>
<author>GlenDC</author>
<copyright>CodeCombat.com © 2013-2014</copyright>
<github_url>https://github.com/codecombat/codecombat.git</github_url>

View file

@ -18,6 +18,14 @@
<vs10redist>http://download.microsoft.com/download/C/6/D/C6D0FD4E-9E53-4897-9B91-836EBA2AACD3/vcredist_x86.exe</vs10redist>
</general>
</general>
<Win8>
<b32>
<mongodb>https://fastdl.mongodb.org/win32/mongodb-win32-i386-2.6.0.zip</mongodb>
</b32>
<b64>
<mongodb>https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.6.0.zip</mongodb>
</b64>
</Win8>
<Win7>
<b32>
<mongodb>https://fastdl.mongodb.org/win32/mongodb-win32-i386-2.6.0.zip</mongodb>

View file

@ -0,0 +1,10 @@
The MIT License (MIT)
Copyright (c) 2014 CodeCombat Inc. and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN sCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.

View file

@ -0,0 +1,29 @@
_____ _ _____ _ _
/ __ \ | | / __ \ | | | |
| / \/ ___ __| | ___ | / \/ ___ _ __ ___ | |__ __ _| |_
| | / _ \ / _` |/ _ \ | | / _ \| '_ ` _ \| '_ \ / _` | __|
| \__/\ (_) | (_| | __/ | \__/\ (_) | | | | | | |_) | (_| | |_
\____/\___/ \__,_|\___| \____/\___/|_| |_| |_|_.__/ \__,_|\__|
=============================================================================
Congratulations, you are now part of the CodeCombat community.
Now that your Develop Environment has been setup, you are ready to start
contributing and help us make this world a better place.
Do you have questions or would you like to meet us?
Talk with us on hipchat @ https://www.hipchat.com/g3plnOKqa
Another way to reach is, is by visiting our forum.
You can find it @ http://discourse.codecombat.com/
You can read about the latest developments on our blog site.
This one can be found @ http://blog.codecombat.com/
Last but not least, you can find most of our documentation
and information on our wiki @ https://github.com/codecombat/codecombat/wiki
We hope you'll enjoy yourself within our community, just as much as us.
- Nick, George, Scott, Michael, Jeremy and Glen

View file

@ -0,0 +1,8 @@
1) Antwoord voorzichtig en juist, indien er een vraag gesteld wordt.
2) Deze installatie is nog steeds in beta en kan bugs bevatten.
3) Rapporteer bugs op 'https://github.com/codecombat/codecombat/issues'
4) Heb je vragen of suggesties? Praat met ons op HipChat via CodeCombat.com
Je kan een Engelstalige stappengids
voor deze installatie vinden op onze wiki:
github.com/codecombat/codecombat/wiki/Setup-on-Windows:-a-step-by-step-guide

View file

@ -3,8 +3,20 @@
<global>
<native>Deutsch</native>
<description>German</description>
<intro>Ab jetzt senden wir unser Feedback in Englisch!</intro>
<tips>Before we start the installation, here are some tips:</tips>
<exit>Press any key to exit...</exit>
</global>
<language>
<choosen>You have choosen Deutsch as your language.</choosen>
<feedback>Ab jetzt senden wir unser Feedback in Deutsch.</feedback>
</language>
<license>
<s1>In order to continue the installation of the developers environment</s1>
<s2>you will have to read and agree with the following license:</s2>
<q1>Have you read the license and do you agree with it?</q1>
<a1>This setup can't happen without an agreement.</a1>
<a2>Installation and Setup of the CodeCombat environment is cancelled.</a2>
</license>
<install>
<system>
<bit>-Bit System erkannt.</bit>
@ -52,6 +64,13 @@
<bashq>Bitte gebe den kompletten Pfad zur Git Bash ein, oder drücke Enter, um den Standardpfad zu verwenden</bashq>
<ssh>Willst du das Repository via SSH auschecken?</ssh>
</process>
<config>
<intro>You should have forked CodeCombat to your own GitHub Account by now...</intro>
<info>Please enter your github information, to configure your local repository.</info>
<username>Username: </username>
<password>Password: </password>
<process>Thank you... Configuring your local repistory right now...</process>
</config>
</github>
<switch>
<install>The installation of your local environment was succesfull!</install>

View file

@ -3,8 +3,20 @@
<global>
<native>English</native>
<description>English</description>
<intro>From now on we'll send our feedback in English!</intro>
<tips>Before we start the installation, here are some tips:</tips>
<exit>Press any key to exit...</exit>
</global>
<language>
<choosen>You have choosen English as your language.</choosen>
<feedback>From now on we'll send our feedback in English.</feedback>
</language>
<license>
<s1>In order to continue the installation of the developers environment</s1>
<s2>you will have to read and agree with the following license:</s2>
<q1>Have you read the license and do you agree with it?</q1>
<a1>This setup can't happen without an agreement.</a1>
<a2>Installation and Setup of the CodeCombat environment is cancelled.</a2>
</license>
<install>
<system>
<bit>-bit computer detected.</bit>

View file

@ -3,8 +3,20 @@
<global>
<native>Nederlands</native>
<description>Dutch</description>
<intro>Vanaf nu geven we onze feedback in het Nederlands!</intro>
<tips>Voor we verder gaan met de installatie hier volgen enkele tips:</tips>
<exit>Druk een willekeurige toets in om af te sluiten...</exit>
</global>
<language>
<choosen>Je hebt Nederlands gekozen als jouw taal naar keuze.</choosen>
<feedback>Vanaf nu geven we onze feedback in het Nederlands.</feedback>
</language>
<license>
<s1>Om verder te gaan met de installatie van jouw CodeCombat omgeving</s1>
<s2>moet je de licentieovereenkomst lezen en ermee akkoord gaan.</s2>
<q1>Heb je de licentieovereenkomst gelezen en ga je ermee akkoord?</q1>
<a1>Deze installatie kan niet doorgaan zonder jouw akkoord.</a1>
<a2>De installatie van jouw Developers omgeving is nu geannulleerd.</a2>
</license>
<install>
<system>
<bit>-bit computer gedetecteerd.</bit>

View file

@ -3,8 +3,20 @@
<global>
<native>ðóññêèé</native>
<description>Russian</description>
<intro>C данного момента мы будем общаться на русском!</intro>
<tips>Before we start the installation, here are some tips:</tips>
<exit>Press any key to exit...</exit>
</global>
<language>
<choosen>You have choosen ðóññêèé as your language.</choosen>
<feedback>C äàííîãî ìîìåíòà ìû áóäåì îáùàòüñÿ íà ðóññêîì.</feedback>
</language>
<license>
<s1>In order to continue the installation of the developers environment</s1>
<s2>you will have to read and agree with the following license:</s2>
<q1>Have you read the license and do you agree with it?</q1>
<a1>This setup can't happen without an agreement.</a1>
<a2>Installation and Setup of the CodeCombat environment is cancelled.</a2>
</license>
<install>
<system>
<bit>-áèòíûé êîìïüþòåð îáíàðóæåí.</bit>

View file

@ -3,8 +3,20 @@
<global>
<native>简体中文</native>
<description>Traditional Chinese</description>
<intro>目前我们只能用英文给你反馈!</intro>
<tips>Before we start the installation, here are some tips:</tips>
<exit>Press any key to exit...</exit>
</global>
<language>
<choosen>You have choosen 简体中文 as your language.</choosen>
<feedback>目前我们只能用英文给你反馈</feedback>
</language>
<license>
<s1>In order to continue the installation of the developers environment</s1>
<s2>you will have to read and agree with the following license:</s2>
<q1>Have you read the license and do you agree with it?</q1>
<a1>This setup can't happen without an agreement.</a1>
<a2>Installation and Setup of the CodeCombat environment is cancelled.</a2>
</license>
<install>
<system>
<bit>-位系统.</bit>
@ -52,6 +64,13 @@
<bashq>请输入 git bash 的安装全路径, 如果你安装的是默认路径, 那么直接输入回车即可</bashq>
<ssh>你是否想使用 ssh 来检出(checkout)库(repository)?</ssh>
</process>
<config>
<intro>You should have forked CodeCombat to your own GitHub Account by now...</intro>
<info>Please enter your github information, to configure your local repository.</info>
<username>Username: </username>
<password>Password: </password>
<process>Thank you... Configuring your local repistory right now...</process>
</config>
</github>
<switch>
<install>The installation of your local environment was succesfull!</install>

View file

@ -3,8 +3,20 @@
<global>
<native>繁体中文</native>
<description>Simplified Chinese</description>
<intro>From now on we'll send our feedback in English!</intro>
<tips>Before we start the installation, here are some tips:</tips>
<exit>Press any key to exit...</exit>
</global>
<language>
<choosen>You have choosen 繁体中文 as your language.</choosen>
<feedback>From now on we'll send our feedback in 繁体中文.</feedback>
</language>
<license>
<s1>In order to continue the installation of the developers environment</s1>
<s2>you will have to read and agree with the following license:</s2>
<q1>Have you read the license and do you agree with it?</q1>
<a1>This setup can't happen without an agreement.</a1>
<a2>Installation and Setup of the CodeCombat environment is cancelled.</a2>
</license>
<install>
<system>
<bit>-bit computer detected.</bit>
@ -52,6 +64,13 @@
<bashq>Please enter the full path where git bash is installed or just press enter if it's in the default location</bashq>
<ssh>Do you want to checkout the repository via ssh?</ssh>
</process>
<config>
<intro>You should have forked CodeCombat to your own GitHub Account by now...</intro>
<info>Please enter your github information, to configure your local repository.</info>
<username>Username: </username>
<password>Password: </password>
<process>Thank you... Configuring your local repistory right now...</process>
</config>
</github>
<switch>
<install>The installation of your local environment was succesfull!</install>

View file

@ -38,6 +38,7 @@ call get_local_text install_process_winpath install process winpath
echo !install_process_s1!
echo !install_process_s2!
echo !install_process_s3!
echo.
echo !install_process_s4!
echo.
echo !install_process_winpath!

View file

@ -3,34 +3,37 @@ echo but most feedback is sent and localised by us.
echo Here is a list of languages:
call print_dashed_seperator
call get_array ..\\localisation\\languages.coco languages language_count
call get_array ..\\localization\\languages.coco languages language_count
for /l %%i in (1,1,%language_count%) do (
call get_text !languages[%%i]! global_description global description
echo [%%i] !global_description!
)
goto:get_localisation_id
goto:get_localization_id
:get_localisation_id
:get_localization_id
call print_dashed_seperator
set /p "localisation_id=Enter the language ID of your preference and press <ENTER>: "
set /p "localization_id=Enter the language ID of your preference and press <ENTER>: "
goto:validation_check
:validation_check
set "localisation_is_false="
set /a local_id = %localisation_id%
if !local_id! EQU 0 set localisation_is_false=1
if !local_id! LSS 1 set localisation_is_false=1
if !local_id! GTR !language_count! set localisation_is_false=1
if defined localisation_is_false (
set "localization_is_false="
set /a local_id = %localization_id%
if !local_id! EQU 0 set localization_is_false=1
if !local_id! LSS 1 set localization_is_false=1
if !local_id! GTR !language_count! set localization_is_false=1
if defined localization_is_false (
echo The id you entered is invalid, please try again...
goto:get_localisation_id
goto:get_localization_id
) else (
set language_id=!languages[%local_id%]!
call get_text !language_id! global_native global native
call print_dashed_seperator
echo You have choosen !global_native! as your language.
call get_text !language_id! global_intro global intro
echo !global_intro!
call get_local_text language_choosen language choosen
echo !language_choosen!
call get_local_text language_feedback language feedback
echo !language_feedback!
call print_seperator
)

View file

@ -8,10 +8,8 @@ for /f "tokens=4-5 delims=. " %%i in ('ver') do set VERSION=%%i.%%j
if "%version%" == "5.2" ( call:set_os XP )
if "%version%" == "6.0" ( call:set_os Vista )
if "%version%" == "6.1" ( call:set_os Win7 )
:: we handle win8.0 as win7
if "%version%" == "6.2" ( call:set_os Win7 )
:: we handle win8.1 as win7
if "%version%" == "6.3" ( call:set_os Win7 )
if "%version%" == "6.2" ( call:set_os Win8 )
if "%version%" == "6.3" ( call:set_os Win8 )
goto:end

View file

@ -1,3 +1,3 @@
for /F "delims=" %%F in ('call run_script .\\get_var.ps1 ..\\localisation\\%1.coco %3 %4 %5 %6') do (
for /F "delims=" %%F in ('call run_script .\\get_var.ps1 ..\\localization\\%1.coco %3 %4 %5 %6') do (
set "%2=%%F"
)

View file

@ -0,0 +1,6 @@
set "LFTP=%1-%language_id%.coco"
if not exist "%LFTP%" (
call open_text_file %1.coco
) else (
call open_text_file %LFTP%
)

View file

@ -1 +1 @@
call open_text_file ..\\config\\readme.coco
call open_localized_text_file ..\\config\\localized\\readme

View file

@ -1,3 +1,3 @@
echo.
echo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
echo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
echo.

View file

@ -1,2 +1,3 @@
set /p res="Press any key to exit..."
call get_local_text global_exit global exit
set /p res="%global_exit%"
exit

View file

@ -1 +1 @@
print_file ..\\config\\license.coco
call print_localized_file ..\\config\\localized\\license

View file

@ -0,0 +1,6 @@
set "LFTP=%1-%language_id%.coco"
if not exist "%LFTP%" (
call print_file %1.coco
) else (
call print_file %LFTP%
)

View file

@ -1,3 +1,3 @@
echo.
echo -----------------------------------------------------------------------------
echo -------------------------------------------------------------------------------
echo.

View file

@ -1 +1 @@
print_file ..\\config\\tips.coco
call print_localized_file ..\\config\\localized\\tips

View file

@ -13,14 +13,15 @@ echo Welcome to the automated Installation of the CodeCombat Dev. Environment!
echo v%version% authored by %author% and published by %copyright%.
call print_seperator
echo Before we start the installation, here are some tips:
call get_language
call get_local_text global_tips global tips
echo !global_tips!
call print_tips
call print_seperator
call sign_license
call get_language
call download_and_install_applications
start cmd /c "setup_p2.bat"

View file

@ -1,15 +1,27 @@
echo In order to continue the installation of the developers environment
echo you will have to read and agree with the following license:
call get_local_text license_s1 license s1
echo !license_s1!
call get_local_text license_s2 license s2
echo !license_s2!
call print_dashed_seperator
call print_license
call print_dashed_seperator
call ask_question "Have you read the license and do you agree with it?"
call get_local_text license_q1 license q1
call ask_question "%license_q1%"
call print_dashed_seperator
if "%result%"=="false" (
echo This setup can't happen without an agreement.
echo Installation and Setup of the CodeCombat environment is cancelled.
call get_local_text license_a1 license a1
echo !license_a1!
call get_local_text license_a2 license a2
echo !license_a2!
echo.
call print_exit
)