Compare commits

...

3 Commits
2.7.8 ... 2.7.9

Author SHA1 Message Date
Marc
d55278714f we need to change source_path for shared build (#977) 2025-11-26 16:10:27 +07:00
Jerry Ma
cb7eca9049 Bump version from 2.7.8 to 2.7.9 2025-11-26 17:08:49 +08:00
henderkes
5b8c9e6f09 we need to change source_path for shared build 2025-11-26 09:37:21 +01:00
2 changed files with 6 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ use Symfony\Component\Console\Application;
*/ */
final class ConsoleApplication extends Application final class ConsoleApplication extends Application
{ {
public const string VERSION = '2.7.8'; public const string VERSION = '2.7.9';
public function __construct() public function __construct()
{ {

View File

@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace SPC\builder\extension; namespace SPC\builder\extension;
use SPC\builder\Extension; use SPC\builder\Extension;
use SPC\store\FileSystem;
use SPC\util\CustomExt; use SPC\util\CustomExt;
#[CustomExt('maxminddb')] #[CustomExt('maxminddb')]
@@ -12,15 +13,13 @@ class maxminddb extends Extension
{ {
public function patchBeforeBuildconf(): bool 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; $original = $this->source_dir;
if (PHP_OS_FAMILY === 'Windows') { FileSystem::copyDir($original . '/ext', SOURCE_PATH . '/php-src/ext/maxminddb');
f_passthru('cd ' . SOURCE_PATH . '/php-src/ext && mklink /D maxminddb ' . $original . '\ext'); $this->source_dir = SOURCE_PATH . '/php-src/ext/maxminddb';
} else {
f_passthru('cd ' . SOURCE_PATH . '/php-src/ext && ln -s ' . $original . '/ext maxminddb');
}
return true; return true;
} }
$this->source_dir = SOURCE_PATH . '/php-src/ext/maxminddb';
return false; return false;
} }
} }