Last active
January 18, 2021 17:36
-
-
Save da9l/958a41b26893cd20926b to your computer and use it in GitHub Desktop.
paket bootstrap in powershell
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
#Downloads latest paket.bootstrapper.exe from github | |
$urlbase = "https://github.com" | |
$latestPage="$urlbase/fsprojects/Paket/releases/latest" | |
Write-Host "Parsing latest release page: $latestPage" | |
$page=Invoke-Webrequest -uri $latestPage | |
$latestBootStrapper=($page.Links | Where-Object { $_.href -match "bootstrapper" }).href | |
$dlurl="$urlbase$latestBootStrapper" | |
Write-Host "Downloading paket.bootstrapper.exe from $dlurl" | |
$wc=new-object net.webclient | |
$wc.UseDefaultCredentials=$true | |
$wc.Proxy.Credentials=$wc.Credentials | |
$wc.DownloadFile($dlurl, (join-path (resolve-path ".\") "paket.bootstrapper.exe")) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment