13 lines
258 B
TypeScript
13 lines
258 B
TypeScript
|
|
export default function getArch(arch: string): string {
|
||
|
|
switch (arch) {
|
||
|
|
case 'x64':
|
||
|
|
return '64bit';
|
||
|
|
case 'arm':
|
||
|
|
return 'ARM';
|
||
|
|
case 'arm64':
|
||
|
|
return 'ARM64';
|
||
|
|
default:
|
||
|
|
throw new Error(`${arch} is not supported`);
|
||
|
|
}
|
||
|
|
}
|