refactor build util
This commit is contained in:
parent
f84177c5ec
commit
6d3489877a
2 changed files with 2 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ function autodetectPlatformAndArch() {
|
|||
s390x: "x64",
|
||||
x64: "x64",
|
||||
}[process.arch];
|
||||
return { platform, arch };
|
||||
return [platform, arch];
|
||||
}
|
||||
|
||||
function validateFilesPresent(pathsToVerify) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue