diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..58c4c013 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,2 @@ +install: powershell -NoProfile -ExecutionPolicy Bypass -Command "windows_cygwin\bootstrap.ps1" +build_script: windows_cygwin\build.bat diff --git a/windows_cygwin/README.md b/windows_cygwin/README.md new file mode 100644 index 00000000..cc3c8bb3 --- /dev/null +++ b/windows_cygwin/README.md @@ -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 + diff --git a/windows_cygwin/bootstrap.ps1 b/windows_cygwin/bootstrap.ps1 new file mode 100644 index 00000000..dbec7a91 --- /dev/null +++ b/windows_cygwin/bootstrap.ps1 @@ -0,0 +1,3 @@ +iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex +choco install -y git win32-openssh + diff --git a/windows_cygwin/build.bat b/windows_cygwin/build.bat new file mode 100644 index 00000000..94f1c10f --- /dev/null +++ b/windows_cygwin/build.bat @@ -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 +