* 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
14 lines
283 B
Batchfile
14 lines
283 B
Batchfile
@echo off
|
|
setlocal
|
|
set "SCRIPT_DIR=%~dp0"
|
|
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
|