From 769092a9f384c062ceea946e12e57f41ceb2630c Mon Sep 17 00:00:00 2001 From: Daniel Aleksandersen Date: Sun, 18 Aug 2024 03:54:50 +0200 Subject: [PATCH] Use flow-win64 on Windows on Arm There is no native binary for win32-arm64 yet. Windows on Arm can run the x64 variant through emulation. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 51d6c44..3417445 100644 --- a/index.js +++ b/index.js @@ -16,6 +16,6 @@ module.exports = ? path.join(__dirname, 'flow-linux64-v' + VERSION, 'flow') : process.platform === 'linux' && process.arch === 'arm64' ? path.join(__dirname, 'flow-linux-arm64-v' + VERSION, 'flow') : - process.platform === 'win32' && process.arch === 'x64' + process.platform === 'win32' && (process.arch === 'x64' || process.arch === 'arm64') ? path.join(__dirname, 'flow-win64-v' + VERSION, 'flow.exe') : null;