mirror of
https://github.com/php-win-ext/setup-php-sdk.git
synced 2026-03-24 00:52:09 +01:00
Download a release asset instead of a tag archive (GH-13)
This commit is contained in:
committed by
GitHub
parent
effb4ebbd4
commit
8d9e79bdbc
2
run.ps1
2
run.ps1
@@ -48,7 +48,7 @@ if (-not $toolset) {
|
||||
Write-Output "Install PHP SDK ..."
|
||||
|
||||
$temp = New-TemporaryFile | Rename-Item -NewName {$_.Name + ".zip"} -PassThru
|
||||
$url = "https://github.com/php/php-sdk-binary-tools/archive/refs/tags/php-sdk-2.3.0.zip"
|
||||
$url = "https://github.com/php/php-sdk-binary-tools/releases/download/php-sdk-2.3.0/php-sdk-binary-tools-php-sdk-2.3.0.zip"
|
||||
Invoke-WebRequest $url -OutFile $temp
|
||||
Expand-Archive $temp -DestinationPath "."
|
||||
Rename-Item "php-sdk-binary-tools-php-sdk-2.3.0" "php-sdk"
|
||||
|
||||
Reference in New Issue
Block a user