From cb37630ccf2dea95d441d77e8191b527b80f74c6 Mon Sep 17 00:00:00 2001 From: mypengpengli <306100898@qq.com> Date: Thu, 22 Jan 2026 15:11:13 +0800 Subject: [PATCH] fix: add .exe extension for Windows source binary path (#188) The copy-native.js script was looking for 'agent-browser' but on Windows the compiled binary is 'agent-browser.exe', causing the copy to fail. Co-authored-by: jiazhuangai Co-authored-by: Claude --- scripts/copy-native.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/copy-native.js b/scripts/copy-native.js index 649cfd7..864b326 100644 --- a/scripts/copy-native.js +++ b/scripts/copy-native.js @@ -12,7 +12,8 @@ import { platform, arch } from 'os'; const __dirname = dirname(fileURLToPath(import.meta.url)); const projectRoot = join(__dirname, '..'); -const sourcePath = join(projectRoot, 'cli/target/release/agent-browser'); +const sourceExt = platform() === 'win32' ? '.exe' : ''; +const sourcePath = join(projectRoot, `cli/target/release/agent-browser${sourceExt}`); const binDir = join(projectRoot, 'bin'); // Determine platform suffix