Add Linux build support and fix test argv handling

- BUILD-GUIDE.md: Add full Linux build instructions alongside Windows
  (system deps, depot_tools setup, gn/ninja paths for both platforms)
- README.md: Update downloads section and usage examples for Linux
- test/cdp-test.js: Fix argv parsing to handle --no-sandbox and other
  Electron flags that shift argument positions

Verified with successful Linux x64 build (Electron v43.0.0-nightly)
and automated stress test: p99 20ms, 0% messages >50ms.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-30 14:55:25 +00:00
parent c76c78e1da
commit c1b643e6c6
4 changed files with 351 additions and 22 deletions
+5 -2
View File
@@ -4,8 +4,11 @@ const fs = require('fs');
const path = require('path');
const { WebSocketServer } = require('ws');
const PORT = parseInt(process.argv[2] || '8085');
const LABEL = process.argv[3] || 'TEST';
// Filter out Electron/Chromium flags (e.g. --no-sandbox) from argv to find app args
const appArgs = process.argv.slice(1).filter(a => !a.startsWith('-'));
// appArgs[0] is the script path, rest are user arguments
const PORT = parseInt(appArgs[1] || '8085');
const LABEL = appArgs[2] || 'TEST';
const TEST_DURATION_MS = 12000;
const WARMUP_MS = 3000;