Skip to content

Commit

Permalink
Update to curl
Browse files Browse the repository at this point in the history
  • Loading branch information
ahqsoftwares committed Feb 4, 2025
1 parent 9573308 commit bd4447f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions leadman_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ function AskDownloadVC {
$ask = (Read-Host).ToLower()

if (-not $ask.StartsWith("n")) {
Invoke-WebRequest -Uri $Url -OutFile "$env:TEMP\vc_redist.exe"
curl.exe -o "$env:temp\vc_redist.exe" -L $Url

Start-Process -FilePath "$env:TEMP\vc_redist.exe" -Wait -ArgumentList @("/install", "/passive", "/norestart")
}
}
Expand Down Expand Up @@ -101,7 +102,9 @@ if ($nt -lt 10) {
$DOWNLOAD = "https://github.com/leadlang/lead/releases/$tag/leadman_$arch-win7-windows-msvc.exe"
}

Invoke-WebRequest -Uri $DOWNLOAD -OutFile "$env:TEMP\leadman_init.exe"; "$INFO Starting leadman"; ""
"$INFO Starting leadman"
""
curl.exe -o "$env:temp\leadman_init.exe" -L $DOWNLOAD

$result = Start-Process -Wait -NoNewWindow -FilePath "$env:TEMP\leadman_init.exe" -ArgumentList "create" -PassThru

Expand Down

0 comments on commit bd4447f

Please sign in to comment.