mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
Allow detect static-bins for windows
This commit is contained in:
@@ -53,11 +53,12 @@ class LibraryPackage extends Package
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach (PackageConfig::get($this->getName(), 'static-bins', []) as $bin) {
|
}
|
||||||
$path = FileSystem::isRelativePath($bin) ? "{$this->getBinDir()}/{$bin}" : $bin;
|
|
||||||
if (!file_exists($path)) {
|
foreach (PackageConfig::get($this->getName(), 'static-bins', []) as $bin) {
|
||||||
return false;
|
$path = FileSystem::isRelativePath($bin) ? "{$this->getBinDir()}/{$bin}" : $bin;
|
||||||
}
|
if (!file_exists($path)) {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user