mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-21 07:45:36 +08:00
Chore
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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')) {
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user