File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
extension/BuildPhpExtension/private Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments