mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 22:31:19 +00:00
* postgresql@18.0: Remove 7zip19.00-helper dependency, fix post_install script --------- Co-authored-by: z-Fng <54583083+z-Fng@users.noreply.github.com>
48 lines
1.6 KiB
JSON
48 lines
1.6 KiB
JSON
{
|
|
"version": "18.0",
|
|
"description": "Object-relational database management system based on POSTGRES.",
|
|
"homepage": "https://www.postgresql.org",
|
|
"license": "PostgreSQL",
|
|
"notes": [
|
|
"Run 'pg_ctl start' to start the database and 'pg_ctl stop' to stop it.",
|
|
"Register it as a service by running 'pg_ctl register -N PostgreSQL' from an elevated shell.",
|
|
"Default superuser login: postgres, password: <blank>"
|
|
],
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://get.enterprisedb.com/postgresql/postgresql-18.0-1-windows-x64-binaries.zip",
|
|
"hash": "4a1ea6e6ecbde1747103c7b5bc0674cc415b9aa8ef7b7bad3a4ee38c37c051b1"
|
|
}
|
|
},
|
|
"extract_dir": "pgsql",
|
|
"post_install": [
|
|
"if (!(Test-Path \"$dir\\data\\pg_hba.conf\")) {",
|
|
" Invoke-ExternalCommand -FilePath \"$dir\\bin\\initdb.exe\" -ArgumentList @('--username=postgres', '--encoding=UTF8', '--locale=C') | Out-Null",
|
|
"}"
|
|
],
|
|
"shortcuts": [
|
|
[
|
|
"pgAdmin 4\\runtime\\pgAdmin4.exe",
|
|
"pgAdmin 4"
|
|
]
|
|
],
|
|
"env_add_path": "bin",
|
|
"env_set": {
|
|
"PGDATA": "$dir\\data",
|
|
"PG_LIB_DIR": "$dir\\lib",
|
|
"PG_INCLUDE_DIR": "$dir\\include"
|
|
},
|
|
"persist": "data",
|
|
"checkver": {
|
|
"url": "https://www.enterprisedb.com/downloads/postgres-postgresql-downloads",
|
|
"regex": ">(?<version>\\d+\\.[\\d.]+)<"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://get.enterprisedb.com/postgresql/postgresql-$version-1-windows-x64-binaries.zip"
|
|
}
|
|
}
|
|
}
|
|
}
|