mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Merge branch 'feature-win-setup' of https://github.com/glendc/codecombat into feature-win-setup
This commit is contained in:
commit
d393c8cce4
4 changed files with 95 additions and 6 deletions
scripts/windows/coco-dev-setup/batch
|
@ -1,5 +1,7 @@
|
|||
1) This program is all about automating the setup of the CoCo environment
|
||||
2) When there is a question, please answer carefull and correct
|
||||
3) This setup is still in beta and may contain bugs
|
||||
4) You can report bugs @ 'https://github.com/codecombat/codecombat/issues'
|
||||
5) Having questions/suggestions? Talk with us on HipChat via CodeCombat.com
|
||||
1) When there is a question, please answer carefull and correct
|
||||
2) This setup is still in beta and may contain bugs
|
||||
3) You can report bugs @ 'https://github.com/codecombat/codecombat/issues'
|
||||
4) Having questions/suggestions? Talk with us on HipChat via CodeCombat.com
|
||||
|
||||
You can find a step-by-step guide for this installation on our wiki.
|
||||
https://github.com/codecombat/codecombat/wiki/<guide_path>
|
|
@ -35,6 +35,12 @@
|
|||
wait=When you're ready, press any key to continue...
|
||||
[process]
|
||||
path=Please give the full path of your CodeCombat git repository:
|
||||
checkout=Please enter the full path where you want to install your CodeCombat environment
|
||||
bashi=This installation requires Git Bash.
|
||||
bashp64=Git bash is by default installed at 'C:\Program Files (x86)\Git'.
|
||||
bashp32=Git bash is by default installed at 'C:\Program Files\Git'.
|
||||
bashq=Please enter the full path where git bash is installed or just press enter if it's in the default location
|
||||
ssh=Do you want to checkout the repository via ssh?
|
||||
[error]
|
||||
path=That path already exists, are you sure you want to overwrite it?
|
||||
exist=That path doesn't exist. Please try again...
|
||||
|
|
|
@ -35,6 +35,12 @@
|
|||
wait=Wanneer je klaar bent, druk dan eender welke toets om verder te gaan...
|
||||
[process]
|
||||
path=Geef alsjeblieft het volledige pad van je CodeCombat git repository:
|
||||
checkout=Geef alsjeblieft het volledige pad waar je de CodeCombat Ontwikkelings omgeving will installeren
|
||||
bashi=Deze installatie maakt gebruik van Git Bash.
|
||||
bashp64=Git bash is normaal geinstalleerd in 'C:\Program Files (x86)\Git'.
|
||||
bashp32=Git bash is normaal geinstalleerd in 'C:\Program Files\Git'.
|
||||
bashq=Geef alsjeblieft het volledige pad op van Git Bash of druk gewoon op enter indien je het pad niet gewijzigd heeft
|
||||
ssh=Wil je het git project downloaden via ssh?
|
||||
[error]
|
||||
path=Dat pad bestaat al, ben je zeker dat je het wil overschrijven?
|
||||
exist=Dat pad bestaat niet, probeer alsjeblieft opnieuw...
|
||||
|
|
|
@ -36,5 +36,80 @@ if "%result%"=="true" (
|
|||
goto:exit_git_setup
|
||||
)
|
||||
|
||||
goto:get_bash_path
|
||||
|
||||
:get_bash_path
|
||||
call get_local_text github-process-bashi
|
||||
echo !github_process_bashi!
|
||||
|
||||
if not defined install_system_bit (
|
||||
call print_dashed_seperator
|
||||
call get_system_information
|
||||
call print_dashed_seperator
|
||||
)
|
||||
|
||||
if "%system_info_bit%"=="64" (
|
||||
call get_local_text github-process-bashp64
|
||||
echo !github_process_bashp64!
|
||||
) else (
|
||||
call get_local_text github-process-bashp32
|
||||
echo !github_process_bashp32!
|
||||
)
|
||||
|
||||
call get_local_text github-process-bashq
|
||||
set /p "git_bash_path=!github_process_bashq!: "
|
||||
|
||||
if not defined git_bash_path (
|
||||
if "%system_info_bit%"=="64" (
|
||||
set "git_bash_path=C:\Program Files (x86)\Git"
|
||||
) else (
|
||||
set "git_bash_path=C:\Program Files\Git"
|
||||
)
|
||||
goto:get_git_path
|
||||
)
|
||||
|
||||
if not exist "%git_bash_path%" (
|
||||
call get_local_text error-exist
|
||||
echo !error_exist!
|
||||
call print_dashed_seperator
|
||||
goto:get_bash_path
|
||||
) else (
|
||||
goto:get_git_path
|
||||
)
|
||||
goto:eof
|
||||
|
||||
:get_git_path
|
||||
call print_dashed_seperator
|
||||
call get_local_text github-process-checkout
|
||||
set /p "repository_path=!github_process_checkout!: "
|
||||
if exist !repository_path! (
|
||||
call get_local_text error-path
|
||||
call ask_question "!error_path!"
|
||||
if "!result!"=="false" (
|
||||
call print_dashed_seperator
|
||||
goto:get_git_path
|
||||
) else (
|
||||
rmdir /s /q %repository_path%
|
||||
goto:git_checkout
|
||||
)
|
||||
) else (
|
||||
goto:git_checkout
|
||||
)
|
||||
goto:eof
|
||||
|
||||
:git_checkout
|
||||
md "%repository_path%"
|
||||
set "repository_path=%repository_path%\coco"
|
||||
|
||||
call print_dashed_seperator
|
||||
set "git_app_path=%git_bash_path%\bin\git.exe"
|
||||
|
||||
call get_config github_url
|
||||
"%git_app_path%" clone "!github_url!" "%repository_path%"
|
||||
|
||||
goto:exit_git_setup
|
||||
goto:eof
|
||||
|
||||
:exit_git_setup
|
||||
call print_dashed_seperator
|
||||
call print_dashed_seperator
|
||||
goto:eof
|
Loading…
Add table
Reference in a new issue