mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 18:05:36 +08:00
Add postgresql (replace postgresql-win)
This commit is contained in:
@@ -5,19 +5,25 @@ postgresql:
|
|||||||
type: ghtagtar
|
type: ghtagtar
|
||||||
repo: postgres/postgres
|
repo: postgres/postgres
|
||||||
match: REL_18_\d+
|
match: REL_18_\d+
|
||||||
|
binary:
|
||||||
|
windows-x86_64: { type: url, url: 'https://get.enterprisedb.com/postgresql/postgresql-16.8-1-windows-x64-binaries.zip', extract: { lib/libpq.lib: '{build_root_path}/lib/libpq.lib', lib/libpgport.lib: '{build_root_path}/lib/libpgport.lib', lib/libpgcommon.lib: '{build_root_path}/lib/libpgcommon.lib', include/libpq-fe.h: '{build_root_path}/include/libpq-fe.h', include/postgres_ext.h: '{build_root_path}/include/postgres_ext.h', include/pg_config_ext.h: '{build_root_path}/include/pg_config_ext.h', include/libpq/libpq-fs.h: '{build_root_path}/include/libpq/libpq-fs.h' } }
|
||||||
metadata:
|
metadata:
|
||||||
license-files: [COPYRIGHT]
|
license-files: ['@/postgresql.txt']
|
||||||
license: PostgreSQL
|
license: PostgreSQL
|
||||||
depends:
|
depends@unix:
|
||||||
- libiconv
|
- libiconv
|
||||||
- libxml2
|
- libxml2
|
||||||
- openssl
|
- openssl
|
||||||
- zlib
|
- zlib
|
||||||
- libedit
|
- libedit
|
||||||
suggests:
|
suggests@unix:
|
||||||
- icu
|
- icu
|
||||||
- libxslt
|
- libxslt
|
||||||
- ldap
|
- ldap
|
||||||
- zstd
|
- zstd
|
||||||
pkg-configs:
|
pkg-configs:
|
||||||
- libpq
|
- libpq
|
||||||
|
static-libs@windows:
|
||||||
|
- libpq.lib
|
||||||
|
- libpgport.lib
|
||||||
|
- libpgcommon.lib
|
||||||
|
|||||||
@@ -323,6 +323,11 @@ class PackageInstaller
|
|||||||
$artifact = $package->getArtifact();
|
$artifact = $package->getArtifact();
|
||||||
return $artifact->isBinaryExtracted();
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -405,6 +405,7 @@ class FileSystem
|
|||||||
public static function replacePathVariable(string $path): string
|
public static function replacePathVariable(string $path): string
|
||||||
{
|
{
|
||||||
$replacement = [
|
$replacement = [
|
||||||
|
'{build_root_path}' => BUILD_ROOT_PATH,
|
||||||
'{pkg_root_path}' => PKG_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',
|
'{php_sdk_path}' => getenv('PHP_SDK_PATH') ? getenv('PHP_SDK_PATH') : WORKING_DIR . '/php-sdk-binary-tools',
|
||||||
'{working_dir}' => WORKING_DIR,
|
'{working_dir}' => WORKING_DIR,
|
||||||
|
|||||||
Reference in New Issue
Block a user