From 6d3489877a4a548aa29bc64b72499238ecb0e5a1 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 5 Jun 2024 09:18:28 -0700 Subject: [PATCH] refactor build util --- binary/build.js | 3 +-- scripts/util/index.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/binary/build.js b/binary/build.js index a5738bd76..bf8ea3719 100644 --- a/binary/build.js +++ b/binary/build.js @@ -27,8 +27,7 @@ let targets = [ "win32-x64", ]; -const { platform: currentPlatform, arch: currentArch } = - autodetectPlatformAndArch(); +const [currentPlatform, currentArch] = autodetectPlatformAndArch(); const assetBackups = [ "node_modules/win-ca/lib/crypt32-ia32.node.bak", diff --git a/scripts/util/index.js b/scripts/util/index.js index 12aa8732a..b155c3e09 100644 --- a/scripts/util/index.js +++ b/scripts/util/index.js @@ -35,7 +35,7 @@ function autodetectPlatformAndArch() { s390x: "x64", x64: "x64", }[process.arch]; - return { platform, arch }; + return [platform, arch]; } function validateFilesPresent(pathsToVerify) {