From 1c06af23faae9f1a1086d949ca8064ce43d76738 Mon Sep 17 00:00:00 2001 From: Cassidy James Blaede Date: Sat, 29 Aug 2020 14:12:22 -0600 Subject: [PATCH] inferOs: Add support for arm64 (#1037) Tested on a Pinebook Pro running elementary OS --- src/infer/inferOs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infer/inferOs.ts b/src/infer/inferOs.ts index 7bd9038..9c32108 100644 --- a/src/infer/inferOs.ts +++ b/src/infer/inferOs.ts @@ -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);