mirror of
https://github.com/php-win-ext/php-windows-builder.git
synced 2026-03-24 00:52:06 +01:00
Use tagged version of php-sdk-binary-tools
This commit is contained in:
@@ -7,7 +7,8 @@ function Get-PhpSdk {
|
||||
param (
|
||||
)
|
||||
begin {
|
||||
$url = "https://github.com/php/php-sdk-binary-tools/archive/master.zip"
|
||||
$sdkVersion = "2.3.0"
|
||||
$url = "https://github.com/php/php-sdk-binary-tools/archive/php-sdk-$sdkVersion.zip"
|
||||
}
|
||||
process {
|
||||
Add-Type -Assembly "System.IO.Compression.Filesystem"
|
||||
@@ -16,7 +17,7 @@ function Get-PhpSdk {
|
||||
$currentDirectory = (Get-Location).Path
|
||||
$sdkZipFilePath = Join-Path $currentDirectory php-sdk.zip
|
||||
[System.IO.Compression.ZipFile]::ExtractToDirectory($sdkZipFilePath, $currentDirectory)
|
||||
Rename-Item -Path php-sdk-binary-tools-master php-sdk
|
||||
Rename-Item -Path php-sdk-binary-tools-php-sdk-$sdkVersion php-sdk
|
||||
|
||||
$sdkDirectoryPath = Join-Path $currentDirectory php-sdk
|
||||
$sdkBinDirectoryPath = Join-Path $sdkDirectoryPath bin
|
||||
|
||||
@@ -7,12 +7,13 @@ function Get-PhpSdk {
|
||||
param (
|
||||
)
|
||||
begin {
|
||||
$url = "https://github.com/php/php-sdk-binary-tools/archive/master.zip"
|
||||
$sdkVersion = "2.3.0"
|
||||
$url = "https://github.com/php/php-sdk-binary-tools/archive/php-sdk-$sdkVersion.zip"
|
||||
}
|
||||
process {
|
||||
Invoke-WebRequest $url -OutFile php-sdk.zip
|
||||
Expand-Archive -Path php-sdk.zip -DestinationPath .
|
||||
Rename-Item -Path php-sdk-binary-tools-master php-sdk
|
||||
Rename-Item -Path php-sdk-binary-tools-php-sdk-$sdkVersion php-sdk
|
||||
}
|
||||
end {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user