TODO translate versions
[webi-installers/.git] / flutter / versions.js
1 "use strict";
2
3 var request = require("@root/request");
4
5 // TODO
6 // get list of supported platforms and archetectures
7 // get list of channels and versions for such
8 // return matching versions/channels as well as urls
9 // map from darwin, linux, windows
10
11 module.platforms = async function () {
12   return [
13     ["macos", "amd64"],
14     ["linux", "amd64"],
15     ["windows", "amd64"],
16   ];
17 };
18
19 module.versions = async function (os, _arch) {
20   return request({
21     url:
22       "https://storage.googleapis.com/flutter_infra/releases/releases_" +
23       os +
24       ".json",
25   });
26 };