require PHP 7.4
This commit is contained in:
parent
59f7bc106d
commit
986a64fe71
@ -40,7 +40,7 @@ Blessing Skin 是一个开源的 PHP 项目,这意味着您可以自由地在
|
||||
Blessing Skin 对您的服务器有一定的要求。在大多数情况下,下列所需的 PHP 扩展已经开启。
|
||||
|
||||
- 一台支持 URL 重写的主机,Nginx 或 Apache
|
||||
- PHP >= 7.2.5
|
||||
- PHP >= 7.4.0
|
||||
- 安装并启用如下 PHP 扩展:
|
||||
- OpenSSL
|
||||
- PDO
|
||||
|
@ -40,7 +40,7 @@ Blessing Skin is an open-source project written in PHP, which means you can depl
|
||||
Blessing Skin has only a few system requirements. In most cases, these PHP extensions are already enabled.
|
||||
|
||||
- Web server with URL rewriting enabled (Nginx or Apache)
|
||||
- PHP >= 7.2.5
|
||||
- PHP >= 7.4.0
|
||||
- PHP Extensions
|
||||
- OpenSSL
|
||||
- PDO
|
||||
|
@ -49,7 +49,7 @@ ini_set('display_errors', true);
|
||||
);
|
||||
}
|
||||
|
||||
$requiredVersion = '7.2.5';
|
||||
$requiredVersion = '7.4.0';
|
||||
preg_match('/(\d+\.\d+\.\d+)/', PHP_VERSION, $matches);
|
||||
$version = $matches[1];
|
||||
if (version_compare($version, $requiredVersion, '<')) {
|
||||
|
@ -3,7 +3,7 @@
|
||||
"description": "A web application brings your custom skins back in offline Minecraft servers.",
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": ">=7.2.5",
|
||||
"php": ">=7.4.0",
|
||||
"ext-ctype": "*",
|
||||
"ext-gd": "*",
|
||||
"ext-json": "*",
|
||||
|
@ -19,7 +19,7 @@ Copy-Item -Path "../$zip" -Destination $zip
|
||||
|
||||
$manifest.latest = $current
|
||||
$manifest.url = $manifest.url.Replace($last, $current)
|
||||
$manifest.php = '7.2.5'
|
||||
$manifest.php = '7.4.0'
|
||||
ConvertTo-Json $manifest | Out-File -FilePath update.json
|
||||
Write-Host "Update source is prepared." -ForegroundColor Green
|
||||
|
||||
|
@ -72,7 +72,7 @@ class UpdateControllerTest extends TestCase
|
||||
{
|
||||
return array_merge([
|
||||
'spec' => 2,
|
||||
'php' => '7.2.5',
|
||||
'php' => '7.4.0',
|
||||
'latest' => $version,
|
||||
'url' => "https://whatever.test/$version/update.zip",
|
||||
], $extra);
|
||||
|
Loading…
Reference in New Issue
Block a user