1 # Download the latest webi, then install {{ exename }}
2 New-Item -Path .local\bin -ItemType Directory -Force | out-null
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-pwsh.ps1" -o "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1"
5 Set-ExecutionPolicy -Scope Process Bypass
6 & "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1" "{{ exename }}"