@echo off
chcp 65001 >nul
setlocal
set "PS=%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe"
if not exist "%PS%" set "PS=powershell.exe"
set "LOGDIR=%LOCALAPPDATA%\LiveRushDataCollector\logs"
if not exist "%LOGDIR%" mkdir "%LOGDIR%" >nul 2>nul
echo Live Rush 直播数据采集诊断启动
echo.
echo 如果这里出现红色错误，请把下面这些日志发给技术同学：
echo %LOGDIR%\launcher.log
echo %LOGDIR%\service.log
echo %LOGDIR%\service.stderr.log
echo.
"%PS%" -NoProfile -STA -ExecutionPolicy Bypass -File "%~dp0Live Rush Data Collector Tray.ps1"
echo.
echo 程序已经退出。请把上方错误和日志文件发给技术同学。
pause
