From 5b8c9e6f09a5f1467f77e553f445e76bd787f6e0 Mon Sep 17 00:00:00 2001 From: henderkes Date: Wed, 26 Nov 2025 09:37:21 +0100 Subject: [PATCH 1/2] we need to change source_path for shared build --- src/SPC/builder/extension/maxminddb.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/SPC/builder/extension/maxminddb.php b/src/SPC/builder/extension/maxminddb.php index 7d7ee096..a8422416 100644 --- a/src/SPC/builder/extension/maxminddb.php +++ b/src/SPC/builder/extension/maxminddb.php @@ -5,6 +5,7 @@ declare(strict_types=1); namespace SPC\builder\extension; use SPC\builder\Extension; +use SPC\store\FileSystem; use SPC\util\CustomExt; #[CustomExt('maxminddb')] @@ -12,15 +13,13 @@ class maxminddb extends Extension { public function patchBeforeBuildconf(): bool { - if (!is_link(SOURCE_PATH . '/php-src/ext/maxminddb')) { + if (!is_dir(SOURCE_PATH . '/php-src/ext/maxminddb')) { $original = $this->source_dir; - if (PHP_OS_FAMILY === 'Windows') { - f_passthru('cd ' . SOURCE_PATH . '/php-src/ext && mklink /D maxminddb ' . $original . '\ext'); - } else { - f_passthru('cd ' . SOURCE_PATH . '/php-src/ext && ln -s ' . $original . '/ext maxminddb'); - } + FileSystem::copyDir($original . '/ext', SOURCE_PATH . '/php-src/ext/maxminddb'); + $this->source_dir = SOURCE_PATH . '/php-src/ext/maxminddb'; return true; } + $this->source_dir = SOURCE_PATH . '/php-src/ext/maxminddb'; return false; } } From cb7eca90494c5679d42753386683d95a3bf64cad Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Wed, 26 Nov 2025 17:08:49 +0800 Subject: [PATCH 2/2] Bump version from 2.7.8 to 2.7.9 --- src/SPC/ConsoleApplication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SPC/ConsoleApplication.php b/src/SPC/ConsoleApplication.php index bbbed9b0..1b1d3e19 100644 --- a/src/SPC/ConsoleApplication.php +++ b/src/SPC/ConsoleApplication.php @@ -34,7 +34,7 @@ use Symfony\Component\Console\Application; */ final class ConsoleApplication extends Application { - public const string VERSION = '2.7.8'; + public const string VERSION = '2.7.9'; public function __construct() {