Merge pull request #18 from cyplo/windows_cygwin_scripts
Automate installation of cygwin
This commit is contained in:
commit
a722dfba0a
4 changed files with 29 additions and 0 deletions
2
appveyor.yml
Normal file
2
appveyor.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
install: powershell -NoProfile -ExecutionPolicy Bypass -Command "windows_cygwin\bootstrap.ps1"
|
||||||
|
build_script: windows_cygwin\build.bat
|
19
windows_cygwin/README.md
Normal file
19
windows_cygwin/README.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
Bootstrap from cmd.exe running as Administrator:
|
||||||
|
|
||||||
|
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/cyplo/dotfiles/master/windows_cygwin/bootstrap.ps1'))"
|
||||||
|
|
||||||
|
launch a normal user's cmd.exe and:
|
||||||
|
|
||||||
|
refreshenv
|
||||||
|
ssh-keygen -b 8192
|
||||||
|
type .ssh\id_rsa.pub
|
||||||
|
# add this key to github
|
||||||
|
mkdir dev
|
||||||
|
cd dev
|
||||||
|
git clone git@github.com:cyplo/dotfiles.git
|
||||||
|
|
||||||
|
launch new cmd.exe as Administrator and:
|
||||||
|
|
||||||
|
cd %HOMEPATH%\dev\dotfiles
|
||||||
|
windows_cygwin\build.bat
|
||||||
|
|
3
windows_cygwin/bootstrap.ps1
Normal file
3
windows_cygwin/bootstrap.ps1
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
|
||||||
|
choco install -y git win32-openssh
|
||||||
|
|
5
windows_cygwin/build.bat
Normal file
5
windows_cygwin/build.bat
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
choco install -y firefox googlechrome wget
|
||||||
|
wget -c https://cygwin.com/setup-x86_64.exe
|
||||||
|
REM cygwin installation
|
||||||
|
setup-x86_64.exe -R "C:\cygwin64" -s http://cygwin.netbet.org/ -q -g -P curl,zsh,git,vim,wget,xz,tar,gawk,bzip2,subversion
|
||||||
|
|
Loading…
Reference in a new issue