Skip to content

Commit c360437

Browse files
author
Aaron Holmes
committed
Update build.cmd to avoid usage of curl, and to instead shell out to PowerShell, which uses Invoke-WebRequest.
1 parent baf84a4 commit c360437

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

build.cmd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
@echo off
22
cls
33

4-
if not exist .paket (
4+
if not exist .paket mkdir .paket
5+
6+
if not exist .paket/paket.bootstrapper.exe (
57
@echo "Installing Paket"
6-
mkdir .paket
7-
curl https://github.com/fsprojects/Paket/releases/download/2.12.5/paket.bootstrapper.exe -L --insecure -o .paket\paket.bootstrapper.exe
8+
Powershell.exe -File download.ps1
9+
810

911
.paket\paket.bootstrapper.exe prerelease
1012
if errorlevel 1 (

download.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Invoke-WebRequest -Uri https://github.com/fsprojects/Paket/releases/download/2.12.5/paket.bootstrapper.exe -OutFile .paket\paket.bootstrapper.exe

0 commit comments

Comments
 (0)