This commit is contained in:
Chris Tate
2026-01-11 04:24:44 -06:00
parent 83bcb6be73
commit e36d03c8d9
4 changed files with 536 additions and 157 deletions
+2 -22
View File
@@ -1,28 +1,8 @@
@echo off
:: agent-browser CLI wrapper for Windows
:: Tries native binary first, falls back to Node.js
setlocal
set "SCRIPT_DIR=%~dp0"
:: Detect architecture
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
set "ARCH=x64"
) else if "%PROCESSOR_ARCHITECTURE%"=="ARM64" (
set "ARCH=arm64"
) else (
set "ARCH=x64"
)
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (set "ARCH=x64") else if "%PROCESSOR_ARCHITECTURE%"=="ARM64" (set "ARCH=arm64") else (set "ARCH=x64")
set "BINARY=%SCRIPT_DIR%agent-browser-win32-%ARCH%.exe"
:: Try native binary first
if exist "%BINARY%" (
"%BINARY%" %*
exit /b %errorlevel%
)
:: Fall back to Node.js
if exist "%BINARY%" ("%BINARY%" %* & exit /b %errorlevel%)
node "%SCRIPT_DIR%..\dist\index.js" %*
exit /b %errorlevel%