Compare commits

..

1 Commits

Author SHA1 Message Date
354f5e033e Add bootstrap-Windows.cmd
usage: bootstrap-Windows.cmd [/?]

Bootstrap a macOS instance with:

* Windows SDK - from MSDN
* Chocolatey - package manager
* Cmder, including Git - from Chocolatey
* Python - from Chocolatey
* virtualenv - from pip
* SSH key - from ssh-keygen
* GitHub public key - with SSH key
* GitLab public key - with SSH key
* BitBucket Cloud public key - with SSH key
* Gogs Cloud public key - with SSH key
* conduit - configuration manager

optional arguments:
        /?              show this help message and exit
2018-01-05 13:04:18 +00:00

View File

@ -38,7 +38,7 @@ if errorlevel 1 (
:: Install Windows SDK :: Install Windows SDK
:windows_sdk :windows_sdk
set choice= set choice=
set /p choice="Install Windows SDK (Y/n)?" set /p choice="Install Windows SDK [Y/n]?"
if "%choice%"=="" goto windows_sdk_yes if "%choice%"=="" goto windows_sdk_yes
if "%choice%"=="Y" goto windows_sdk_yes if "%choice%"=="Y" goto windows_sdk_yes
if "%choice%"=="y" goto windows_sdk_yes if "%choice%"=="y" goto windows_sdk_yes
@ -58,7 +58,7 @@ del %~dp0\winsdksetup.exe
:: Install Chocolatey :: Install Chocolatey
:choco :choco
set choice= set choice=
set /p choice="Install Chocolatey (Y/n)? " set /p choice="Install Chocolatey [Y/n]? "
if "%choice%"=="" goto choco_yes if "%choice%"=="" goto choco_yes
if "%choice%"=="Y" goto choco_yes if "%choice%"=="Y" goto choco_yes
if "%choice%"=="y" goto choco_yes if "%choice%"=="y" goto choco_yes
@ -74,7 +74,7 @@ if errorlevel 1 exit /B 1
:: Install Cmder, including Git :: Install Cmder, including Git
:git :git
set choice= set choice=
set /p choice="Install Cmder, including Git (Y/n)? " set /p choice="Install Cmder, including Git [Y/n]? "
if "%choice%"=="" goto git_yes if "%choice%"=="" goto git_yes
if "%choice%"=="Y" goto git_yes if "%choice%"=="Y" goto git_yes
if "%choice%"=="y" goto git_yes if "%choice%"=="y" goto git_yes
@ -90,7 +90,7 @@ if errorlevel 1 exit /B 1
:: Install Python :: Install Python
:python :python
set choice= set choice=
set /p choice="Install Python (Y/n)? " set /p choice="Install Python [Y/n]? "
if "%choice%"=="" goto python_yes if "%choice%"=="" goto python_yes
if "%choice%"=="Y" goto python_yes if "%choice%"=="Y" goto python_yes
if "%choice%"=="y" goto python_yes if "%choice%"=="y" goto python_yes
@ -106,7 +106,7 @@ if errorlevel 1 exit /B 1
:: Install virtualenv :: Install virtualenv
:virtualenv :virtualenv
set choice= set choice=
set /p choice="Install virtualenv (Y/n)? " set /p choice="Install virtualenv [Y/n]? "
if "%choice%"=="" goto virtualenv_yes if "%choice%"=="" goto virtualenv_yes
if "%choice%"=="Y" goto virtualenv_yes if "%choice%"=="Y" goto virtualenv_yes
if "%choice%"=="y" goto virtualenv_yes if "%choice%"=="y" goto virtualenv_yes
@ -122,7 +122,7 @@ if errorlevel 1 exit /B 1
:: Generate SSH key :: Generate SSH key
:ssh_key :ssh_key
set choice= set choice=
set /p choice="Generate SSH key (Y/n)? " set /p choice="Generate SSH key [Y/n]? "
if "%choice%"=="" goto ssh_key_yes if "%choice%"=="" goto ssh_key_yes
if "%choice%"=="Y" goto ssh_key_yes if "%choice%"=="Y" goto ssh_key_yes
if "%choice%"=="y" goto ssh_key_yes if "%choice%"=="y" goto ssh_key_yes
@ -142,7 +142,7 @@ if errorlevel 1 exit /B 1
:: Add git to the PATH to pip can find it :: Add git to the PATH to pip can find it
set PATH=C:\tools\cmder\vendor\git-for-windows\bin;%PATH% set PATH=C:\tools\cmder\vendor\git-for-windows\bin;%PATH%
set choice= set choice=
set /p choice="Set SSH keys on remote Git servers (Y/n)? " set /p choice="Set SSH keys on remote Git servers [Y/n]? "
if "%choice%"=="" goto remote_ssh_keys_yes if "%choice%"=="" goto remote_ssh_keys_yes
if "%choice%"=="Y" goto remote_ssh_keys_yes if "%choice%"=="Y" goto remote_ssh_keys_yes
if "%choice%"=="y" goto remote_ssh_keys_yes if "%choice%"=="y" goto remote_ssh_keys_yes
@ -161,7 +161,7 @@ if errorlevel 1 exit /B 1
:remove_bootstrap :remove_bootstrap
set choice= set choice=
set /p choice="Remove bootstrap-Windows.cmd (y/N)? " set /p choice="Remove bootstrap-Windows.cmd [y/N]? "
if "%choice%"=="" goto remove_bootstrap_no if "%choice%"=="" goto remove_bootstrap_no
if "%choice%"=="Y" goto remove_bootstrap_yes if "%choice%"=="Y" goto remove_bootstrap_yes
if "%choice%"=="y" goto remove_bootstrap_yes if "%choice%"=="y" goto remove_bootstrap_yes