inferOs: Add support for arm64 (#1037)

Tested on a Pinebook Pro running elementary OS
This commit is contained in:
Cassidy James Blaede 2020-08-29 14:12:22 -06:00 committed by GitHub
parent e24b22ea7f
commit 1c06af23fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export function inferPlatform(): string {
export function inferArch(): string {
const arch = os.arch();
if (arch !== 'ia32' && arch !== 'x64' && arch !== 'arm') {
if (arch !== 'ia32' && arch !== 'x64' && arch !== 'arm' && arch !== 'arm64') {
throw new Error(`Incompatible architecture ${arch} detected`);
}
log.debug('Inferred arch', arch);