# Download the latest webi, then install {{ exename }}
New-Item -Path .local\bin -ItemType Directory -Force
IF ($Env:WEBI_HOST -eq $null -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" }
-curl.exe -s -A "windows" "$Env:WEBI_HOST/packages/_webi/webi.ps1" -o "$Env:USERPROFILE\.local\bin\webi.ps1"
+curl.exe -s -A "windows" "$Env:WEBI_HOST/packages/_webi/webi-pwsh.ps1" -o "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1"
Set-ExecutionPolicy -Scope Process Bypass
-& "$Env:USERPROFILE\.local\bin\webi.ps1" "{{ exename }}"
+& "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1" "{{ exename }}"
New-Item -Path .local\xbin -ItemType Directory -Force
# See note on Set-ExecutionPolicy above
-Set-Content -Path .local\bin\webi.bat -Value "@echo off`r`npushd %USERPROFILE%`r`npowershell -ExecutionPolicy Bypass .local\bin\webi.ps1 %1`r`npopd"
+Set-Content -Path .local\bin\webi.bat -Value "@echo off`r`npushd %USERPROFILE%`r`npowershell -ExecutionPolicy Bypass .local\bin\webi-pwsh.ps1 %1`r`npopd"
if (!(Test-Path -Path .local\opt))
{
New-Item -Path .local\opt -ItemType Directory -Force
-powershell -ExecutionPolicy Bypass .\.local\bin\webi.ps1 %1
+powershell -ExecutionPolicy Bypass .\.local\bin\webi-pwsh.ps1 %1
if (!(Get-Command "git.exe" -ErrorAction SilentlyContinue))
{
- & "$Env:USERPROFILE\.local\bin\webi.ps1" git
+ & "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1" git
# because we need git.exe to be available to golang immediately
$Env:PATH = "$Env:USERPROFILE\.local\opt\git\cmd;$Env:PATH"
}
# Windows 10
~/.local/bin/webi.cmd
-~/.local/bin/webi.ps1
+~/.local/bin/webi-pwsh.ps1
~/.local/bin/pathman.exe
~/.local/opt/pathman-*
```