posimai-root/tools/pc-audit/run-audit.bat

21 lines
330 B
Batchfile

@echo off
cd /d "%~dp0..\.."
echo.
echo === Posimai PC Audit ===
echo.
echo Running audit...
call npm run audit:pc
if errorlevel 1 (
echo.
echo ERROR: Audit failed.
pause
exit /b 1
)
echo.
echo Opening report viewer...
start "" "%~dp0report-viewer.html"
echo.
echo Done. Select out\latest.json in the browser.
echo.
pause