postgres joins the fight
[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-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.13-1-osx-binaries.zip',
24         version: '10.13',
25         lts: false,
26         channel: 'stable',
27         date: '',
28         os: 'macos',
29         arch: 'amd64',
30         ext: 'zip',
31         download: ''
32       }
33     ].map(function (rel) {
34       rel.download =
35         'https://get.enterprisedb.com/postgresql/' +
36         rel.name +
37         '?ls=Crossover&type=Crossover';
38       return rel;
39     }),
40     download: ''
41   };
42 };
43
44 if (module === require.main) {
45   module.exports(require('@root/request')).then(function (all) {
46     all = require('../_webi/normalize.js')(all);
47     console.info(JSON.stringify(all));
48   });
49 }