mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 03:15:35 +08:00
Refactor LibraryPackage to skip pkg-config and static-bin checks on Windows
This commit is contained in:
@@ -44,6 +44,7 @@ class LibraryPackage extends Package
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (SystemTarget::getTargetOS() !== 'Windows') {
|
||||||
foreach (PackageConfig::get($this->getName(), 'pkg-configs', []) as $pc) {
|
foreach (PackageConfig::get($this->getName(), 'pkg-configs', []) as $pc) {
|
||||||
if (!str_ends_with($pc, '.pc')) {
|
if (!str_ends_with($pc, '.pc')) {
|
||||||
$pc .= '.pc';
|
$pc .= '.pc';
|
||||||
@@ -58,6 +59,7 @@ class LibraryPackage extends Package
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user