Skip to content

Instantly share code, notes, and snippets.

@dburriss
Created June 27, 2018 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dburriss/760d409d2e8413ea35a128b1275ea5f6 to your computer and use it in GitHub Desktop.
Save dburriss/760d409d2e8413ea35a128b1275ea5f6 to your computer and use it in GitHub Desktop.
Powershell script to get the latest version of Paket. I add it to my PS Profile.
function New-Paket {
mkdir .paket
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$tag = (Invoke-WebRequest -Uri https://api.github.com/repos/fsprojects/Paket/releases | ConvertFrom-Json)[0].tag_name
$uri = " https://github.com/fsprojects/Paket/releases/download/" + $tag + "/paket.bootstrapper.exe"
Invoke-WebRequest $uri -OutFile .paket/paket.exe
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment