mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
Fix windows setup-runtime php download link (#650)
This commit is contained in:
parent
4558204962
commit
8925e97e62
@ -51,10 +51,11 @@ if ($action -eq 'add-path') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# get php 8.1 specific version
|
# get php 8.1 specific version
|
||||||
$API = (Invoke-WebRequest -Uri "https://www.php.net/releases/index.php?json&version=8.4") | ConvertFrom-Json
|
|
||||||
|
|
||||||
# php windows download
|
# php windows download
|
||||||
$PHPRuntimeUrl = "https://windows.php.net/downloads/releases/php-" + $API.version + "-nts-Win32-vs16-x64.zip"
|
$PHPRuntimeUrl = "https://windows.php.net/downloads/releases/archives/php-8.4.4-nts-Win32-vs17-x64.zip"
|
||||||
|
Write-Host "Downloading PHP from: " -NoNewline
|
||||||
|
Write-Host $PHPRuntimeUrl -ForegroundColor Cyan
|
||||||
$ComposerUrl = "https://getcomposer.org/download/latest-stable/composer.phar"
|
$ComposerUrl = "https://getcomposer.org/download/latest-stable/composer.phar"
|
||||||
|
|
||||||
# create dir
|
# create dir
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user