mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-05 02:40:17 +00:00
fix(flutter): set full download string directly on build info
This commit is contained in:
@@ -66,10 +66,10 @@ module.exports = async function (request) {
|
||||
json: true,
|
||||
});
|
||||
|
||||
let body = resp.body;
|
||||
all.download = `${body.base_url}/{{ download }}`;
|
||||
let osBaseUrl = resp.body.base_url;
|
||||
let osReleases = resp.body.releases;
|
||||
|
||||
for (let asset of body.releases) {
|
||||
for (let asset of osReleases) {
|
||||
if (!channelMap[asset.channel]) {
|
||||
channelMap[asset.channel] = true;
|
||||
}
|
||||
@@ -81,7 +81,7 @@ module.exports = async function (request) {
|
||||
channel: asset.channel,
|
||||
date: asset.release_date.replace(/T.*/, ''),
|
||||
//sha256: asset.sha256,
|
||||
download: asset.archive,
|
||||
download: `${osBaseUrl}/${asset.archive}`,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user