mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
Replaced all instances of webi.ps1 with webi-pwsh.ps1
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
# 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 }}"
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ New-Item -Path .local\bin -ItemType Directory -Force
|
||||
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
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
powershell -ExecutionPolicy Bypass .\.local\bin\webi.ps1 %1
|
||||
powershell -ExecutionPolicy Bypass .\.local\bin\webi-pwsh.ps1 %1
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ $pkg_dst_bin = "$pkg_dst\bin"
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ These are the files that are installed when you use [webinstall.dev](/):
|
||||
|
||||
# Windows 10
|
||||
~/.local/bin/webi.cmd
|
||||
~/.local/bin/webi.ps1
|
||||
~/.local/bin/webi-pwsh.ps1
|
||||
~/.local/bin/pathman.exe
|
||||
~/.local/opt/pathman-*
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user