mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 14:21:19 +00:00
postgresql@18.0: Simplify extraction, update notes & checkver (#7156)
* postgresql@18.0: Remove 7zip19.00-helper dependency, fix post_install script --------- Co-authored-by: z-Fng <54583083+z-Fng@users.noreply.github.com>
This commit is contained in:
parent
30d04ae94b
commit
21eb5b4722
@ -3,26 +3,21 @@
|
|||||||
"description": "Object-relational database management system based on POSTGRES.",
|
"description": "Object-relational database management system based on POSTGRES.",
|
||||||
"homepage": "https://www.postgresql.org",
|
"homepage": "https://www.postgresql.org",
|
||||||
"license": "PostgreSQL",
|
"license": "PostgreSQL",
|
||||||
"depends": "7zip19.00-helper",
|
|
||||||
"notes": [
|
"notes": [
|
||||||
"Run run 'pg_ctl start' or 'pg_ctl stop' to start and stop the database or",
|
"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.",
|
"Register it as a service by running 'pg_ctl register -N PostgreSQL' from an elevated shell.",
|
||||||
"Default superuser login: postgres, password: <blank>"
|
"Default superuser login: postgres, password: <blank>"
|
||||||
],
|
],
|
||||||
"architecture": {
|
"architecture": {
|
||||||
"64bit": {
|
"64bit": {
|
||||||
"url": "https://get.enterprisedb.com/postgresql/postgresql-18.0-1-windows-x64-binaries.zip#/dl.zip_",
|
"url": "https://get.enterprisedb.com/postgresql/postgresql-18.0-1-windows-x64-binaries.zip",
|
||||||
"hash": "4a1ea6e6ecbde1747103c7b5bc0674cc415b9aa8ef7b7bad3a4ee38c37c051b1"
|
"hash": "4a1ea6e6ecbde1747103c7b5bc0674cc415b9aa8ef7b7bad3a4ee38c37c051b1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pre_install": [
|
"extract_dir": "pgsql",
|
||||||
"Invoke-ExternalCommand 7z1900-helper -ArgumentList @('x', '-bso0', \"$dir\\dl.zip_\", \"-o$dir\") | Out-Null",
|
|
||||||
"Move-Item \"$dir\\pgsql\\*\" \"$dir\\\"",
|
|
||||||
"Remove-Item \"$dir\\pgsql\", \"$dir\\dl.zip_\" -Force -Recurse"
|
|
||||||
],
|
|
||||||
"post_install": [
|
"post_install": [
|
||||||
"if (!(Test-Path \"$dir\\data\\pg_hba.conf\")) {",
|
"if (!(Test-Path \"$dir\\data\\pg_hba.conf\")) {",
|
||||||
" Invoke-ExternalCommand -FilePath \"$dir\\bin\\initdb.exe\" -ArgumentList @('--username=postgres', '--encoding=UTF8', '--locale=en', '--lc-collate=C') | Out-Null",
|
" Invoke-ExternalCommand -FilePath \"$dir\\bin\\initdb.exe\" -ArgumentList @('--username=postgres', '--encoding=UTF8', '--locale=C') | Out-Null",
|
||||||
"}"
|
"}"
|
||||||
],
|
],
|
||||||
"shortcuts": [
|
"shortcuts": [
|
||||||
@ -39,13 +34,13 @@
|
|||||||
},
|
},
|
||||||
"persist": "data",
|
"persist": "data",
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"url": "https://www.postgresql.org/ftp/source/",
|
"url": "https://www.enterprisedb.com/downloads/postgres-postgresql-downloads",
|
||||||
"regex": "v(?<version>[\\d.]+)"
|
"regex": ">(?<version>\\d+\\.[\\d.]+)<"
|
||||||
},
|
},
|
||||||
"autoupdate": {
|
"autoupdate": {
|
||||||
"architecture": {
|
"architecture": {
|
||||||
"64bit": {
|
"64bit": {
|
||||||
"url": "https://get.enterprisedb.com/postgresql/postgresql-$version-1-windows-x64-binaries.zip#/dl.zip_"
|
"url": "https://get.enterprisedb.com/postgresql/postgresql-$version-1-windows-x64-binaries.zip"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user