mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
Chore
This commit is contained in:
parent
16f94466fd
commit
b9af9ba056
@ -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
|
||||
|
||||
@ -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')) {
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user