@echo off
chcp 65001 >nul
echo === Holder Scanner 启动脚本 ===
echo.

REM 编译 Scanner
echo 📦 正在编译 Scanner...
go build -o bin\holder-scanner.exe cmd\scanner\main.go

if %errorlevel% neq 0 (
    echo ❌ 编译失败
    pause
    exit /b 1
)

echo ✓ 编译成功
echo.
echo 🚀 正在启动 Scanner...
echo ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
echo.

bin\holder-scanner.exe
