From 8d9e79bdbce494591e33d542377778613cfca59f Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 15 Sep 2024 23:35:38 +0200 Subject: [PATCH] Download a release asset instead of a tag archive (GH-13) --- run.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.ps1 b/run.ps1 index 33bd04e..6ea6bac 100644 --- a/run.ps1 +++ b/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"