Skip to content

Instantly share code, notes, and snippets.

@da9l
Last active January 18, 2021 17:36
Show Gist options
  • Save da9l/958a41b26893cd20926b to your computer and use it in GitHub Desktop.
Save da9l/958a41b26893cd20926b to your computer and use it in GitHub Desktop.
paket bootstrap in powershell
#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