@echo off
chcp 65001 >nul

echo ========================================
echo  HIPOS Report v1.0 - 发布 win-x64 单文件
echo ========================================

dotnet publish HiposReport.csproj -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true

if %errorlevel% neq 0 (
  echo 发布失败，请确认已经安装 .NET 8 SDK。
  pause
  exit /b 1
)

echo.
echo 发布完成：
echo bin\Release\net8.0\win-x64\publish
pause
