Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Site.js
spikes
windows-10-powershell-installer
Commits
0ca13b3b
Unverified
Commit
0ca13b3b
authored
Sep 30, 2019
by
Aral's ThinkPad
Browse files
Download and extaction now takes place in temporary directory
parent
1086a1f0
Pipeline
#888
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
install.ps1
View file @
0ca13b3b
...
...
@@ -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
}
readme.md
View file @
0ca13b3b
# 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.)
## TODO
-
Work in a temporary directory, not the current one.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment