mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-01 00:53:47 +00:00
* chore: update constants * feat: add releases data utils * chore: add fast-xml-parser * chore: update types * feat: fetch & parse all releases data * chore: update utils * wip: use real data on DataTable * chore: update yarn.lock * fix: getReleaseCommitHash * feat: filter data per downloads tab * chore: update DownloadsTable * chore: update DownloadsTable Props * fix: getReleaseArch.ts * feat: add fetchXMLData util * feat: add fetchLatestReleaseCommit util * feat: add getSortedReleases util * chore: comment wip primary release feature * fix: fetchXMLData * chore: add netlify.toml * fix: total number of releases count * fix: center showing latest releases text and use smaller font * chore: prettier * chore: update textStyles * fix: merge conflicts
17 lines
375 B
TypeScript
17 lines
375 B
TypeScript
export const getReleaseKind = (filename: string) => {
|
|
const os = filename.includes('alltools') ? filename.split('-')[2] : filename.split('-')[1];
|
|
|
|
if (os == 'android' || os == 'ios') {
|
|
return 'Library';
|
|
}
|
|
|
|
if (os == 'windows') {
|
|
if (filename.endsWith('.exe')) {
|
|
return 'Installer';
|
|
} else {
|
|
return 'Library';
|
|
}
|
|
}
|
|
|
|
return 'Archive';
|
|
};
|