Compare commits

...

2 Commits

Author SHA1 Message Date
AJ ONeal
a3ce080c37 fix(flutter): set full download string directly on build info 2024-01-02 04:06:40 +00:00
AJ ONeal
5a5f12d8e7 fix(go): set full download string directly on build info 2024-01-02 03:59:25 +00:00
2 changed files with 6 additions and 6 deletions

View File

@@ -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}`,
});
}
}

View File

@@ -44,7 +44,7 @@ function getAllReleases(request) {
var goReleases = resp.body;
var all = {
releases: [],
download: 'https://dl.google.com/go/{{ download }}',
download: '',
};
goReleases.forEach((release) => {
@@ -77,7 +77,7 @@ function getAllReleases(request) {
arch: arch,
ext: '', // let normalize run the split/test/join
hash: '-', // not ready to standardize this yet
download: filename,
download: `https://dl.google.com/go/${filename}`,
});
});
});