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