This commit is contained in:
crazywhalecc
2026-02-04 16:25:34 +08:00
parent 16f94466fd
commit b9af9ba056
3 changed files with 5 additions and 3 deletions

View File

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

View File

@@ -526,8 +526,7 @@ class PackageInstaller
{ {
// process 'php' target // process 'php' target
if ($package->getName() === 'php') { 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; $added = false;
if ($package->getBuildOption('build-all') || $package->getBuildOption('build-cli')) { 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'); Registry::loadRegistry(ROOT_DIR . '/spc.registry.json');
// load registries from environment variable SPC_REGISTRIES // load registries from environment variable SPC_REGISTRIES
Registry::loadFromEnvOrOption(); Registry::loadFromEnvOrOption();