mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-03 18:00:18 +00:00
27 lines
567 B
JavaScript
27 lines
567 B
JavaScript
'use strict';
|
|
|
|
var request = require('@root/request');
|
|
|
|
// TODO
|
|
// get list of supported platforms and archetectures
|
|
// get list of channels and versions for such
|
|
// return matching versions/channels as well as urls
|
|
// map from darwin, linux, windows
|
|
|
|
module.platforms = async function () {
|
|
return [
|
|
['macos', 'amd64'],
|
|
['linux', 'amd64'],
|
|
['windows', 'amd64']
|
|
];
|
|
};
|
|
|
|
module.versions = async function (os, _arch) {
|
|
return request({
|
|
url:
|
|
'https://storage.googleapis.com/flutter_infra/releases/releases_' +
|
|
os +
|
|
'.json'
|
|
});
|
|
};
|