Add support for arm64 for server builds

This commit is contained in:
Alex Dima
2022-03-14 16:22:54 +01:00
parent 6e0be36443
commit bd9d4d5b51
5 changed files with 25 additions and 39 deletions

View File

@@ -12,7 +12,7 @@ const yarnrc = fs.readFileSync(yarnrcPath, 'utf8');
const version = /^target\s+"([^"]+)"$/m.exec(yarnrc)![1];
const platform = process.platform;
const arch = platform === 'darwin' ? 'x64' : process.arch;
const arch = process.arch;
const node = platform === 'win32' ? 'node.exe' : 'node';
const nodePath = path.join(root, '.build', 'node', `v${version}`, `${platform}-${arch}`, node);