Skip to content

Conversation

@mypengpengli
Copy link
Contributor

Problem

When running pnpm build:native on Windows, the build fails with:

Error: Native binary not found at D:\...\cli\target\release\agent-browser
Run "cargo build --release --manifest-path cli/Cargo.toml" first

The Rust compiler successfully builds agent-browser.exe, but the copy-native.js script looks for agent-browser (without the .exe extension).

Solution

Added platform detection to include the .exe extension when running on Windows:

const sourceExt = platform() === 'win32' ? '.exe' : '';
const sourcePath = join(projectRoot, `cli/target/release/agent-browser${sourceExt}`);

Testing

  • Tested on Windows 10/11 x64
  • pnpm build:native now completes successfully
  • The native binary is correctly copied to bin/agent-browser-win32-x64.exe

On Windows, the Rust compiler outputs `agent-browser.exe` but the
copy-native.js script was looking for `agent-browser` (without extension),
causing the build to fail with "Native binary not found" error.

This fix adds the .exe extension when running on Windows platform.

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link
Contributor

vercel bot commented Jan 19, 2026

@mypengpengli is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant