From 631e68d88a3912751aaf06d2e8fb066dab4a782e Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Thu, 23 Jun 2022 14:00:43 -0400 Subject: [PATCH] Allow `ARM64` as a synonym for `aarch64` (#110) --- lib/installer.js | 3 ++- src/installer.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/installer.js b/lib/installer.js index e97e625..342470b 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -33,7 +33,8 @@ const osMap = { const archMap = { 'x86': 'i686', 'x64': 'x86_64', - 'aarch64': 'aarch64' + 'aarch64': 'aarch64', + 'ARM64': 'aarch64' }; // Store information about the environment const osPlat = os.platform(); // possible values: win32 (Windows), linux (Linux), darwin (macOS) diff --git a/src/installer.ts b/src/installer.ts index 8a1e94b..3170a06 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -19,7 +19,8 @@ const osMap = { const archMap = { 'x86': 'i686', 'x64': 'x86_64', - 'aarch64': 'aarch64' + 'aarch64': 'aarch64', + 'ARM64': 'aarch64' } // Store information about the environment