feat: Add support for different processor architectures (#518)
ARM, ARM64
This commit is contained in:
parent
65bdbf15ab
commit
6d30a88741
10 changed files with 859 additions and 718 deletions
12
src/get-arch.ts
Normal file
12
src/get-arch.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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`);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue