Skip to content

Commit

Permalink
fake it
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Oct 16, 2024
1 parent eeac3a7 commit bb51991
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/fetch-deps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ foreach ($line in $response.Content -split "`r?`n") {
}
}

$needs
exit

New-Item "deps" -ItemType "directory"

$baseurl = "https://downloads.php.net/~windows/php-sdk/deps/$vs/$arch"
foreach ($dep in $needs.GetEnumerator()) {
Write-Output "Fetching $($dep.Name)-$($dep.Value)"
$temp = New-TemporaryFile | Rename-Item -NewName {$_.Name + ".zip"} -PassThru
$url = "$baseurl/$($dep.Name)-$($dep.Value)-$vs-$arch.zip"
$url = "$baseurl/$($dep.Name)-$($dep.Value)-vs16-$arch.zip"
Invoke-WebRequest $url -OutFile $temp
Expand-Archive $temp -DestinationPath "deps"
}
Expand Down

0 comments on commit bb51991

Please sign in to comment.