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 {
7
7
param (
8
8
)
9
9
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"
11
12
}
12
13
process {
13
14
Add-Type - Assembly " System.IO.Compression.Filesystem"
@@ -16,7 +17,7 @@ function Get-PhpSdk {
16
17
$currentDirectory = (Get-Location ).Path
17
18
$sdkZipFilePath = Join-Path $currentDirectory php- sdk.zip
18
19
[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
20
21
21
22
$sdkDirectoryPath = Join-Path $currentDirectory php- sdk
22
23
$sdkBinDirectoryPath = Join-Path $sdkDirectoryPath bin
Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ function Get-PhpSdk {
7
7
param (
8
8
)
9
9
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"
11
12
}
12
13
process {
13
14
Invoke-WebRequest $url - OutFile php- sdk.zip
14
15
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
16
17
}
17
18
end {
18
19
}
You can’t perform that action at this time.
0 commit comments