This commit is contained in:
crazywhalecc 2026-02-04 16:25:34 +08:00
parent 16f94466fd
commit b9af9ba056
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
3 changed files with 5 additions and 3 deletions

View File

@ -100,6 +100,9 @@ class PackageBuilder
// ignore copy to self
if (realpath($src) !== realpath($dst)) {
FileSystem::copy($src, $dst);
if ($executable) {
chmod($dst, 0755);
}
}
// file exist

View File

@ -526,8 +526,7 @@ class PackageInstaller
{
// process 'php' target
if ($package->getName() === 'php') {
logger()->warning("Building 'php' target is deprecated, please use specific targets like 'build:php-cli' instead.");
// logger()->warning("Building 'php' target is deprecated, please use specific targets like 'build:php-cli' instead.");
$added = false;
if ($package->getBuildOption('build-all') || $package->getBuildOption('build-cli')) {

View File

@ -58,7 +58,7 @@ if (filter_var(getenv('SPC_ENABLE_LOG_FILE'), FILTER_VALIDATE_BOOLEAN)) {
});
}
// load internal registry
// load core registry
Registry::loadRegistry(ROOT_DIR . '/spc.registry.json');
// load registries from environment variable SPC_REGISTRIES
Registry::loadFromEnvOrOption();