mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-03 18:19:53 -05:00
Git remote configuratin added and replaced setup root file by installer exe with icon
This commit is contained in:
parent
3bfced33d9
commit
8362ddc1bb
6 changed files with 87 additions and 40 deletions
|
@ -52,6 +52,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>
|
||||
<npm>
|
||||
<install>Installing bower, brunch, nodemon and sendwithus...</install>
|
||||
|
|
|
@ -107,6 +107,40 @@ goto:eof
|
|||
call get_config github_url
|
||||
"%git_app_path%" clone "!github_url!" "%repository_path%\coco"
|
||||
|
||||
goto:git_configuration
|
||||
goto:eof
|
||||
|
||||
:git_configuration
|
||||
call print_dashed_seperator
|
||||
|
||||
call get_local_text github_config_intro github config intro
|
||||
echo !github_config_intro!
|
||||
|
||||
call get_local_text github_config_info github config info
|
||||
echo !github_config_info!
|
||||
|
||||
call print_dashed_seperator
|
||||
|
||||
call get_local_text github_config_username github config username
|
||||
set /p "git_username=!github_config_username!"
|
||||
|
||||
call get_local_text github_config_password github config password
|
||||
|
||||
set /p "git_password=!github_config_password!"
|
||||
|
||||
call print_dashed_seperator
|
||||
|
||||
call get_local_text github_config_process github config process
|
||||
echo !github_config_process!
|
||||
|
||||
set cur_dir=%CD%
|
||||
cd !repository_path!\coco
|
||||
|
||||
git remote rm origin
|
||||
git remote add origin https://!git_username!:!git_password!@github.com/!git_username!/codecombat.git
|
||||
|
||||
cd !cur_dir!
|
||||
|
||||
goto:exit_git_setup
|
||||
goto:eof
|
||||
|
||||
|
|
|
@ -5,43 +5,6 @@ call configuration_cmd
|
|||
|
||||
call github_setup
|
||||
|
||||
call npm_and_brunch_setup
|
||||
|
||||
call print_finished_header
|
||||
call print_dashed_seperator
|
||||
|
||||
call get_local_text end_succesfull end succesfull
|
||||
call get_local_text end_thankyou end thankyou
|
||||
echo %end_succesfull%
|
||||
echo %end_thankyou%
|
||||
|
||||
call print_dashed_seperator
|
||||
|
||||
call get_local_text start_s1 start s1
|
||||
call get_local_text start_s2 start s2
|
||||
call get_local_text start_s3 start s3
|
||||
call get_local_text start_s4 start s4
|
||||
call get_local_text start_s5 start s5
|
||||
call get_local_text start_s6 start s6
|
||||
|
||||
echo !start_s1!
|
||||
echo !start_s2!
|
||||
echo.
|
||||
echo !start_s3! '!repository_path!\coco\SCOCODE.bat'
|
||||
echo !start_s4!
|
||||
echo !start_s5!
|
||||
echo.
|
||||
echo !start_s6!
|
||||
|
||||
call print_dashed_seperator
|
||||
|
||||
call get_local_text end_readme end readme
|
||||
call ask_question "!end_readme!"
|
||||
|
||||
if "%result%"=="true" (
|
||||
call open_readme
|
||||
)
|
||||
|
||||
exit
|
||||
start cmd /c "setup_p3.bat"
|
||||
|
||||
endlocal
|
45
scripts/windows/coco-dev-setup/batch/scripts/setup_p3.bat
Executable file
45
scripts/windows/coco-dev-setup/batch/scripts/setup_p3.bat
Executable file
|
@ -0,0 +1,45 @@
|
|||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
call configuration_cmd
|
||||
|
||||
call npm_and_brunch_setup
|
||||
|
||||
call print_finished_header
|
||||
call print_dashed_seperator
|
||||
|
||||
call get_local_text end_succesfull end succesfull
|
||||
call get_local_text end_thankyou end thankyou
|
||||
echo %end_succesfull%
|
||||
echo %end_thankyou%
|
||||
|
||||
call print_dashed_seperator
|
||||
|
||||
call get_local_text start_s1 start s1
|
||||
call get_local_text start_s2 start s2
|
||||
call get_local_text start_s3 start s3
|
||||
call get_local_text start_s4 start s4
|
||||
call get_local_text start_s5 start s5
|
||||
call get_local_text start_s6 start s6
|
||||
|
||||
echo !start_s1!
|
||||
echo !start_s2!
|
||||
echo.
|
||||
echo !start_s3! '!repository_path!\coco\SCOCODE.bat'
|
||||
echo !start_s4!
|
||||
echo !start_s5!
|
||||
echo.
|
||||
echo !start_s6!
|
||||
|
||||
call print_dashed_seperator
|
||||
|
||||
call get_local_text end_readme end readme
|
||||
call ask_question "!end_readme!"
|
||||
|
||||
if "%result%"=="true" (
|
||||
call open_readme
|
||||
)
|
||||
|
||||
exit
|
||||
|
||||
endlocal
|
|
@ -1,2 +0,0 @@
|
|||
cd scripts
|
||||
setup.bat
|
BIN
scripts/windows/coco-dev-setup/batch/setup.exe
Executable file
BIN
scripts/windows/coco-dev-setup/batch/setup.exe
Executable file
Binary file not shown.
Loading…
Reference in a new issue