Skip to content

Commit

Permalink
Show how to invoke PowerShell script
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinWise committed Jan 22, 2022
1 parent 0a8e534 commit 93452a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ The marketing site.

Stores the `install.sh` script to make it easy to install.

## Install Script Notes

Invoke from a power shell instance:

```
iex "& { $(irm http://127.0.0.1:8000/page/site/install.ps1 ) } -GitHub AustinWise/smeagol -Crate smeagol-wiki"
```

Invoke from CMD.EXE:

```
powershell -ExecutionPolicy ByPass -NoProfile -Command "iex \" ^& { $(irm http://127.0.0.1:8000/page/site/install.ps1 ) } -GitHub AustinWise/smeagol -Crate smeagol-wiki\" "
```

## TODO

* Some sort of real build system to pull the CSS in? Perhaps `esbuild`?
1 change: 1 addition & 0 deletions site/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ function Detect-LatestVersion() {

write-host " $url"
try {
# TODO: switch to using invoke-restmethod
$data = Invoke-WebRequest -Uri $url -Headers $headers -UseBasicParsing
}
catch {
Expand Down

0 comments on commit 93452a9

Please sign in to comment.