Created
June 27, 2018 04:50
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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