mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-28 00:27:26 +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
28 lines
624 B
TypeScript
28 lines
624 B
TypeScript
export const getReleaseArch = (filename: string) => {
|
|
const arch = filename.includes('alltools') ? filename.split('-')[3] : filename.split('-')[2];
|
|
|
|
switch (arch) {
|
|
case '386':
|
|
return '32-bit';
|
|
case 'amd64':
|
|
return '64-bit';
|
|
case 'arm5':
|
|
return 'ARMv5';
|
|
case 'arm6':
|
|
return 'ARMv6';
|
|
case 'arm7':
|
|
return 'ARMv7';
|
|
case 'arm64':
|
|
return 'ARM64';
|
|
case 'mips':
|
|
return 'MIPS32';
|
|
case 'mipsle':
|
|
return 'MIPS32(le)';
|
|
case 'mips64':
|
|
return 'MIPS64';
|
|
case 'MIPS64(le)':
|
|
return 'MIPS64(le)';
|
|
default:
|
|
return 'all';
|
|
}
|
|
};
|