47af13bd630647824ab72d89c29551bb38452358
[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.13-1-osx-binaries.zip',
35         version: '10.13',
36         lts: false,
37         channel: 'stable',
38         date: '',
39         os: 'macos',
40         arch: 'amd64',
41         ext: 'zip',
42         download: ''
43       }
44     ].map(function (rel) {
45       rel.download =
46         'https://get.enterprisedb.com/postgresql/' +
47         rel.name +
48         '?ls=Crossover&type=Crossover';
49       return rel;
50     }),
51     download: ''
52   };
53 };
54
55 if (module === require.main) {
56   module.exports(require('@root/request')).then(function (all) {
57     all = require('../_webi/normalize.js')(all);
58     console.info(JSON.stringify(all));
59   });
60 }