mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-04 15:25:41 +08:00
Add postgresql (replace postgresql-win)
This commit is contained in:
@@ -323,6 +323,11 @@ class PackageInstaller
|
||||
$artifact = $package->getArtifact();
|
||||
return $artifact->isBinaryExtracted();
|
||||
}
|
||||
// Fallback: if the download cache is missing (e.g. download failed or cache was cleared),
|
||||
// still check whether the files are physically present in buildroot.
|
||||
if ($package instanceof LibraryPackage) {
|
||||
return $package->isInstalled();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -405,6 +405,7 @@ class FileSystem
|
||||
public static function replacePathVariable(string $path): string
|
||||
{
|
||||
$replacement = [
|
||||
'{build_root_path}' => BUILD_ROOT_PATH,
|
||||
'{pkg_root_path}' => PKG_ROOT_PATH,
|
||||
'{php_sdk_path}' => getenv('PHP_SDK_PATH') ? getenv('PHP_SDK_PATH') : WORKING_DIR . '/php-sdk-binary-tools',
|
||||
'{working_dir}' => WORKING_DIR,
|
||||
|
||||
Reference in New Issue
Block a user