refactor build util

This commit is contained in:
Nate Sesti 2024-06-05 09:18:28 -07:00
parent f84177c5ec
commit 6d3489877a
2 changed files with 2 additions and 3 deletions

View file

@ -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",

View file

@ -35,7 +35,7 @@ function autodetectPlatformAndArch() {
s390x: "x64",
x64: "x64",
}[process.arch];
return { platform, arch };
return [platform, arch];
}
function validateFilesPresent(pathsToVerify) {