mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
13 lines
786 B
PowerShell
13 lines
786 B
PowerShell
# Download the latest webi, then install {{ exename }}
|
|
# <pre>
|
|
############################################################
|
|
# <h1>Cheat Sheet at CHEATSHEET_URL</h1>
|
|
# <meta http-equiv="refresh" content="3; URL='CHEATSHEET_URL'" />
|
|
############################################################
|
|
New-Item -Path "$Env:USERPROFILE\Downloads\webi" -ItemType Directory -Force | Out-Null
|
|
New-Item -Path "$Env:USERPROFILE\.local\bin" -ItemType Directory -Force | Out-Null
|
|
IF ($null -eq $Env:WEBI_HOST -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" }
|
|
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-pwsh.ps1" "{{ exename }}"
|