Unverified Commit 0ca13b3b authored by Aral's ThinkPad's avatar Aral's ThinkPad
Browse files

Download and extaction now takes place in temporary directory

parent 1086a1f0
Pipeline #888 failed with stages
......@@ -68,7 +68,7 @@ if (!([Security.Principal.WindowsPrincipal] `
Write-Output " $satelliteEmoji Downloading Site.js v12.6.0$ellipsis"
$currentPath = (Get-Item -Path ".\").FullName
Start-Process -Verb RunAs powershell.exe -WorkingDirectory $currentPath -Wait -ArgumentList "$currentPath/install.ps1"
Start-Process -Verb RunAs powershell.exe -Wait -ArgumentList "$currentPath/install.ps1"
# We're back from the privileged window. Update this window's path immediately so that
# the person can use the site command right away from the current session.
......@@ -87,6 +87,8 @@ if (!([Security.Principal.WindowsPrincipal] `
Write-Output ''
Write-Output ' * Downloading Site.js v12.6.0...'
# Switch to temp folder and download the latest Site.js archive.
cd "~\AppData\Local\Temp\"
Invoke-WebRequest -Uri "https://sitejs.org/releases/windows/12.6.0.tar.gz" -OutFile "12.6.0.tar.gz"
Write-Output ''
......@@ -114,5 +116,5 @@ if (!([Security.Principal.WindowsPrincipal] `
Write-Output ''
# Give people a chance to read the output.
Start-Sleep -Seconds 2
Start-Sleep -Seconds 1
# Windows 10 PowerShell installer spike for Site.js
The installer is pretty much working (see install.ps1).
The installer is in install.ps1.
The hardest part was getting the emoji to work! :facepalm: (see output.ps1).
......@@ -13,7 +13,3 @@ Copy and paste into PowerShell window under Windows Terminal:
(In final version, the script will be served from SiteJS.org, of course.)
- Work in a temporary directory, not the current one.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment