add git and golang for windows, fix some PATH stuff
[webi-installers/.git] / _webi / bootstrap.ps1
1 # Download the latest webi, then install {{ exename }}
2 IF (!(Test-Path -Path .local\bin)) { New-Item -Path .local\bin -ItemType Directory }
3 IF ($Env:WEBI_HOST -eq $null -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" }
4 curl.exe -s -A "windows" "$Env:WEBI_HOST/packages/_webi/webi.ps1" -o "$Env:USERPROFILE\.local\bin\webi.ps1"
5 pushd "$Env:USERPROFILE"
6 & powershell -ExecutionPolicy Bypass ".local\bin\webi.ps1" "{{ exename }}"
7 popd