Release HEAD - Try fixing build again

This commit is contained in:
Github Actions 2022-12-06 13:31:24 +00:00
parent 09a2833242
commit 19fa502774
7 changed files with 13 additions and 7 deletions

View File

@ -40,9 +40,12 @@ class Installer
*/
public function __construct()
{
if (PHP_MAJOR_VERSION < 8 || PHP_MINOR_VERSION < 1) {
if ((PHP_MAJOR_VERSION === 7 && PHP_MINOR_VERSION < 1) || PHP_MAJOR_VERSION < 7) {
throw new \Exception('MadelineProto requires at least PHP 8.1.');
}
if ((PHP_MAJOR_VERSION === 8 && PHP_MINOR_VERSION < 1) || PHP_MAJOR_VERSION === 7) {
trigger_error('MadelineProto requires at least PHP 8.1.');
}
if (PHP_INT_SIZE < 8) {
throw new \Exception('A 64-bit build of PHP is required to run MadelineProto, PHP 8.1 is required.');
}
@ -171,6 +174,9 @@ class Installer
private static function load($release)
{
if ($release === null) {
if ((PHP_MAJOR_VERSION === 8 && PHP_MINOR_VERSION < 1) || PHP_MAJOR_VERSION === 7) {
throw new \Exception('MadelineProto requires at least PHP 8.1.');
}
throw new \Exception('Could not download MadelineProto, please check your internet connection and PHP configuration!');
}
$phar = "madeline-$release.phar";

View File

@ -1 +1 @@
67a78c9d32ed68e5735ff7cb6c74a6a980a1fb0e-71
37fdcd57a3e8676f58e327f28acb39b4a127229b-71

View File

@ -1 +1 @@
67a78c9d32ed68e5735ff7cb6c74a6a980a1fb0e-72
37fdcd57a3e8676f58e327f28acb39b4a127229b-72

View File

@ -1 +1 @@
67a78c9d32ed68e5735ff7cb6c74a6a980a1fb0e-73
37fdcd57a3e8676f58e327f28acb39b4a127229b-73

View File

@ -1 +1 @@
67a78c9d32ed68e5735ff7cb6c74a6a980a1fb0e-74
37fdcd57a3e8676f58e327f28acb39b4a127229b-74

View File

@ -1 +1 @@
67a78c9d32ed68e5735ff7cb6c74a6a980a1fb0e-80
37fdcd57a3e8676f58e327f28acb39b4a127229b-80

View File

@ -1 +1 @@
67a78c9d32ed68e5735ff7cb6c74a6a980a1fb0e-81
37fdcd57a3e8676f58e327f28acb39b4a127229b-81