ci: add test for Windows CMD wrapper (#289)

* ci: add test for Windows CMD wrapper

This test will fail until the CMD wrapper is fixed to call the native binary.

* fix: Windows CMD wrapper calls native binary instead of missing index.js
This commit is contained in:
Chris Tate
2026-01-26 17:54:46 -06:00
committed by GitHub
parent 0256c8f2e9
commit 143c8a8f3e
2 changed files with 15 additions and 2 deletions
+10 -2
View File
@@ -1,5 +1,13 @@
@echo off
setlocal
set "SCRIPT_DIR=%~dp0"
node "%SCRIPT_DIR%..\dist\index.js" %*
exit /b %errorlevel%
set "BINARY=%SCRIPT_DIR%agent-browser-win32-x64.exe"
if exist "%BINARY%" (
"%BINARY%" %*
exit /b %errorlevel%
)
echo Error: No binary found for win32-x64 >&2
echo Run 'npm run build:native' to build for your platform >&2
exit /b 1