-
Notifications
You must be signed in to change notification settings - Fork 9
/
postgresql.json
52 lines (52 loc) · 1.95 KB
/
postgresql.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"version": "17.0",
"description": "Object-relational database management system based on POSTGRES.",
"homepage": "https://www.postgresql.org",
"license": "PostgreSQL",
"depends": "7zip19.00-helper",
"notes": [
"Run run 'pg_ctl start' or 'pg_ctl stop' to start and stop the database or",
"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-17.0-1-windows-x64-binaries.zip#/dl.zip_",
"hash": "cf8c411633d9a880364e1731fe722334be71362325db9446365fc33159e51630"
}
},
"pre_install": [
"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": [
"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",
"}"
],
"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.postgresql.org/ftp/source/",
"regex": "v(?<version>[\\d.]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://get.enterprisedb.com/postgresql/postgresql-$version-1-windows-x64-binaries.zip#/dl.zip_"
}
}
}
}