Add arm support (#159)

This commit is contained in:
Jonathan Dygert
2024-11-26 21:45:44 -05:00
committed by GitHub
parent 1f3e7143d9
commit c83ccfeb86
2 changed files with 8 additions and 2 deletions

View File

@@ -129,6 +129,8 @@ function getArch(): Error | string {
return 'x86_64';
case 'arm64':
return 'aarch64';
case 'arm':
return 'armv7';
default:
return Error(`Unsupported arch "${process.arch}"`);
}
@@ -141,7 +143,11 @@ function getPlatform(): Error | string {
case 'win32':
return 'pc-windows-msvc';
case 'linux':
return 'unknown-linux-musl';
if (process.arch == 'arm') {
return 'unknown-linux-musleabi';
} else {
return 'unknown-linux-musl';
}
default:
return Error(`Unsupported platform "${process.platform}"`);
}