Allow detect static-bins for windows

This commit is contained in:
crazywhalecc
2026-04-12 23:12:11 +08:00
parent 60d206cac0
commit be034b756b

View File

@@ -53,11 +53,12 @@ class LibraryPackage extends Package
return false;
}
}
foreach (PackageConfig::get($this->getName(), 'static-bins', []) as $bin) {
$path = FileSystem::isRelativePath($bin) ? "{$this->getBinDir()}/{$bin}" : $bin;
if (!file_exists($path)) {
return false;
}
}
foreach (PackageConfig::get($this->getName(), 'static-bins', []) as $bin) {
$path = FileSystem::isRelativePath($bin) ? "{$this->getBinDir()}/{$bin}" : $bin;
if (!file_exists($path)) {
return false;
}
}
return true;