Skip to content

Commit

Permalink
Add instructions for Microsoft PowerShell (#190)
Browse files Browse the repository at this point in the history
These are the necessary instructions for downloading Dockle for Windows 64bit using Microsoft PowerShell 7 (which is slightly different from "Windows PowerShell 5" - MS PowerShell is the newest version)
  • Loading branch information
rbairwell committed Jul 16, 2022
1 parent becf0d8 commit fce73ce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Expand Up @@ -37,6 +37,7 @@ See [Installation](#installation) and [Common Examples](#common-examples)
- [Debian/Ubuntu](#debianubuntu)
- [Arch Linux](#arch-linux)
- [Windows](#windows)
- [Microsoft PowerShell 7](#microsoft-powershell-7)
- [Binary](#binary)
- [asdf](#asdf)
- [From source](#from-source)
Expand Down Expand Up @@ -135,7 +136,13 @@ VERSION=$(
$ unzip dockle.zip && rm dockle.zip
$ ./dockle.exe [IMAGE_NAME]
```

## Microsoft PowerShell 7
```bash
if (((Invoke-WebRequest "https://api.github.com/repos/goodwithtech/dockle/releases/latest").Content) -match '"tag_name":"v(?<ver>[^"]+)"') {
$VERSION=$Matches.ver &&
Invoke-WebRequest "https://github.com/goodwithtech/dockle/releases/download/v${VERSION}/dockle_${VERSION}_Windows-64bit.zip" -OutFile dockle.zip &&
Expand-Archive dockle.zip && Remove-Item dockle.zip }
```
## Binary
You can get the latest version binary from [releases page](https://github.com/goodwithtech/dockle/releases/latest).
Expand Down

0 comments on commit fce73ce

Please sign in to comment.