Skip to content

Commit 77afcac

Browse files
committed
Use tagged version of php-sdk-binary-tools
1 parent 8f789e3 commit 77afcac

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

extension/BuildPhpExtension/private/Get-PhpSdk.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ function Get-PhpSdk {
77
param (
88
)
99
begin {
10-
$url = "https://github.com/php/php-sdk-binary-tools/archive/master.zip"
10+
$sdkVersion = "2.3.0"
11+
$url = "https://github.com/php/php-sdk-binary-tools/archive/php-sdk-$sdkVersion.zip"
1112
}
1213
process {
1314
Add-Type -Assembly "System.IO.Compression.Filesystem"
@@ -16,7 +17,7 @@ function Get-PhpSdk {
1617
$currentDirectory = (Get-Location).Path
1718
$sdkZipFilePath = Join-Path $currentDirectory php-sdk.zip
1819
[System.IO.Compression.ZipFile]::ExtractToDirectory($sdkZipFilePath, $currentDirectory)
19-
Rename-Item -Path php-sdk-binary-tools-master php-sdk
20+
Rename-Item -Path php-sdk-binary-tools-php-sdk-$sdkVersion php-sdk
2021

2122
$sdkDirectoryPath = Join-Path $currentDirectory php-sdk
2223
$sdkBinDirectoryPath = Join-Path $sdkDirectoryPath bin

php/BuildPhp/private/Get-PhpSdk.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ function Get-PhpSdk {
77
param (
88
)
99
begin {
10-
$url = "https://github.com/php/php-sdk-binary-tools/archive/master.zip"
10+
$sdkVersion = "2.3.0"
11+
$url = "https://github.com/php/php-sdk-binary-tools/archive/php-sdk-$sdkVersion.zip"
1112
}
1213
process {
1314
Invoke-WebRequest $url -OutFile php-sdk.zip
1415
Expand-Archive -Path php-sdk.zip -DestinationPath .
15-
Rename-Item -Path php-sdk-binary-tools-master php-sdk
16+
Rename-Item -Path php-sdk-binary-tools-php-sdk-$sdkVersion php-sdk
1617
}
1718
end {
1819
}

0 commit comments

Comments
 (0)