refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / postgres / releases.js
1 'use strict';
2
3 module.exports = async function () {
4   // TODO scape some combination of
5   // - https://www.enterprisedb.com/download-postgresql-binaries
6   // - https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
7   //      - https://www.postgresql.org/download/
8   //      - https://www.postgresql.org/download/linux/debian/
9   return {
10     releases: [
11       {
12         name: 'postgresql-10.12-1-linux-x64-binaries.tar.gz',
13         version: '10.12',
14         lts: false,
15         channel: 'stable',
16         date: '',
17         os: 'linux',
18         arch: 'amd64',
19         ext: 'tar',
20         download: ''
21       },
22       {
23         name: 'postgresql-10.12-1-linux-binaries.tar.gz',
24         version: '10.12',
25         lts: false,
26         channel: 'stable',
27         date: '',
28         os: 'linux',
29         arch: 'x86',
30         ext: 'tar',
31         download: ''
32       },
33       {
34         name: 'postgresql-10.12-1-osx-binaries.zip',
35         version: '10.12',
36         lts: false,
37         channel: 'stable',
38         date: '',
39         os: 'macos',
40         arch: 'amd64',
41         ext: 'zip',
42         download: ''
43       },
44       {
45         name: 'postgresql-10.13-1-osx-binaries.zip',
46         version: '10.13',
47         lts: false,
48         channel: 'stable',
49         date: '',
50         os: 'macos',
51         arch: 'amd64',
52         ext: 'zip',
53         download: ''
54       },
55       {
56         name: 'postgresql-11.8-1-osx-binaries.zip',
57         version: '11.8',
58         lts: false,
59         channel: 'stable',
60         date: '',
61         os: 'macos',
62         arch: 'amd64',
63         ext: 'zip',
64         download: ''
65       },
66       {
67         name: 'postgresql-12.3-1-osx-binaries.zip',
68         version: '12.3',
69         lts: false,
70         channel: 'stable',
71         date: '',
72         os: 'macos',
73         arch: 'amd64',
74         ext: 'zip',
75         download: ''
76       }
77     ].map(function (rel) {
78       rel.download =
79         'https://get.enterprisedb.com/postgresql/' +
80         rel.name +
81         '?ls=Crossover&type=Crossover';
82       return rel;
83     }),
84     download: ''
85   };
86 };
87
88 if (module === require.main) {
89   module.exports(require('@root/request')).then(function (all) {
90     all = require('../_webi/normalize.js')(all);
91     console.info(JSON.stringify(all));
92   });
93 }