diff --git a/_webi/bootstrap.ps1 b/_webi/bootstrap.ps1 index f61c3dd..8ed6527 100644 --- a/_webi/bootstrap.ps1 +++ b/_webi/bootstrap.ps1 @@ -1,4 +1,5 @@ # Download the latest webi, then install {{ exename }} +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 ($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-pwsh.ps1" -o "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1" diff --git a/node/install.ps1 b/node/install.ps1 index 00f9c93..70dc890 100644 --- a/node/install.ps1 +++ b/node/install.ps1 @@ -4,6 +4,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE")) { echo "Downloading $Env:PKG_NAME from $Env:WEBI_PKG_URL to $Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE" + New-Item -Path "$Env:USERPROFILE\Downloads\webi" -ItemType Directory -Force | out-null #Invoke-WebRequest https://nodejs.org/dist/v12.16.2/node-v12.16.2-win-x64.zip -OutFile node-v12.16.2-win-x64.zip & curl.exe -A "$Env:WEBI_UA" -fsSL "$Env:WEBI_PKG_URL" -o "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE.part" & move "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE.part" "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE"