This commit is contained in:
John Kleinschmidt 2017-12-01 12:05:07 -05:00
Родитель 8d61c9c64f
Коммит 4304aedbc4
1 изменённых файлов: 13 добавлений и 6 удалений

Просмотреть файл

@ -37,6 +37,13 @@ ghauth(authOptions, function (err, authData) {
platform: platform,
url: `${url}/${platform}/${branch.commit.sha}/libchromiumcontent.zip`
})
assets.push({
branch: branch.name,
commit: branch.commit.sha,
platform: platform,
url: `${url}/${platform}/${branch.commit.sha}/libchromiumcontent-static.zip`,
static: true
})
})
})
@ -52,16 +59,16 @@ ghauth(authOptions, function (err, authData) {
matches.forEach((asset, i) => {
const status = asset.available ? '\u2713'.green : '\u2717'.red
// add space between branches
if (!query && i > 0 && asset.branch != assets[i-1].branch) console.log('')
if (args.urls) {
console.log(`${status} ${asset.branch} - ${asset.url}`)
} else {
console.log(`${status} ${asset.branch} - ${asset.commit} - ${asset.platform}`)
} else {
console.log(`${status} ${asset.branch} (${asset.static?'static':'shared'}) - ${asset.commit} - ${asset.platform}`)
}
})
})
.catch(err => {
@ -76,4 +83,4 @@ async function fetch (asset) {
} catch (error) {
return Object.assign(asset, {available: false})
}
}
}