Making git automatic && making it more userfriendly

This commit is contained in:
GlenDC 2014-02-05 01:48:11 +01:00
parent 047d89e802
commit becd046472
6 changed files with 42 additions and 25 deletions
scripts/windows/coco-dev-setup/batch

View file

@ -0,0 +1,5 @@
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

View file

@ -18,10 +18,13 @@ IF EXIST "%PROGRAMFILES(X86)%" (
set "ZU-app=utilities\7za.exe"
:: DEBUG:
+ DEBUG FLOW OF PROGRAM
+ DEBUG & GET GIT AUTOMATIC WORKING
:: TODO:
:: + Write code to install vs if it's not yet installed on users pc
:: + Write Tips...
:: + Write Git Checkout repository code:
:: 1) Let user specify destination
:: 2) do a git clone with the git application
@ -64,6 +67,14 @@ if "%res%"=="false" (
GOTO:END
)
:: Tips
call:log "Before we start the installation, here are some tips:"
echo.
call:parse_aa_and_draw "config\tips"
call:draw_ss
:: Read Language Index
call:parse_file_new "localisation\languages" lang lang_c
@ -130,9 +141,6 @@ call:log_lw 8
call:install_software_o "git" "%%downloads[1]%%" exe 9
call:draw_dss
call:get_lw word 11
:: [TODO] Check if that application exists, if not ask again with warning that the path is invalid!!! (SAFETYYYY)
set git_exe="bin\sh.exe"
:: [TODO] Add downloads for windows visual studio ?!
@ -228,18 +236,11 @@ goto END
call:log_lw_ss 16
call:log_lw_sse 17
::Show user the correct steps to execute
call:log_lw 28
call:log_lw_prfx 29 " 1) "
call:log_lw_prfx 30 " "
call:log_lw_prfx 31 " 2) "
call:draw_dss
start /WAIT "%git_exe_path%\%git_exe% --login -i"
call:draw_dss
call:set_system_path "%git_exe_path%\bin"
call:set_system_path "%git_exe_path%\cmd"
call:user_set_git_repository
goto git_repo_configuration
goto git_rep_checkout_auto
:user_set_git_repository
call:get_lw word 32
@ -253,9 +254,13 @@ goto:eof
call:draw_dss
call:user_set_git_repository
)
goto git_repo_configuration
goto git_rep_checkout_auto
goto:eof
:git_rep_checkout_auto
git clone https://github.com/codecombat/codecombat.git "%git_repository_path%"
goto:git_repo_configuration
:git_repo_configuration
call:log_lw_ss 35
call:log_lw_sse 36
@ -481,6 +486,10 @@ goto:eof
setx -m %~1 %~2
goto:eof
:set_system_path
set PATH=%PATH%;%~1 /M
goto:eof
:: ============================== EOF ====================================
:END

View file

@ -0,0 +1,3 @@
set PATH=%PATH%;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\Git\cmd /M
git
pause

View file

@ -5,11 +5,11 @@ Don't close any windows please, unless specified explicitly.
downloading:
installing:
CodeCombat is safely stored on a git repository.
Therefore you need a git command-line application.
Therefore you need a git command-line application (Git-bash).
Examples: git-bash, CygWin, ...
Do you already have a git command-line application?
Do you already have git-bash?
Download and Installation cancelled...
Enter the path to where you installed your Git application
Enter the path to where you installed Git-bash
Do you already have the latest version of node-js installed?
Do you already have the latest version of ruby installed?
Do you already have the latest version of mongo-db installed?

View file

@ -5,11 +5,11 @@ Don't close any windows please, unless specified explicitly.
downloading:
installing:
CodeCombat is safely stored on a git repository.
Therefore you need a git command-line application.
Therefore you need a git command-line application (Git-bash).
Examples: git-bash, CygWin, ...
Do you already have a git command-line application?
Do you already have git-bash?
Download and Installation cancelled...
Enter the path to where you installed your Git application
Enter the path to where you installed Git-bash
Do you already have the latest version of node-js installed?
Do you already have the latest version of ruby installed?
Do you already have the latest version of mongo-db installed?

View file

@ -5,11 +5,11 @@ Don't close any windows please, unless specified explicitly.
downloading:
installing:
CodeCombat is safely stored on a git repository.
Therefore you need a git command-line application.
Therefore you need a git command-line application (Git-bash).
Examples: git-bash, CygWin, ...
Do you already have a git command-line application?
Do you already have git-bash?
Download and Installation cancelled...
Enter the path to where you installed your Git application
Enter the path to where you installed Git-bash
Do you already have the latest version of node-js installed?
Do you already have the latest version of ruby installed?
Do you already have the latest version of mongo-db installed?