@echo off
chcp 65001 >nul
title Gold AutoTrade — 激活正式版
setlocal enabledelayedexpansion

cd /d "%~dp0"

:: Auto-activate venv if exists
if exist ".venv\Scripts\python.exe" (
    call .venv\Scripts\activate.bat
)

echo ==================================================
echo  Gold AutoTrade — 激活正式版
echo ==================================================
echo.
set /p key="请输入许可证密钥 (GAT-XXXX-XXXX-XXXX-XXXX): "
echo.
python -m src.license.activate --key "!key!" --server https://license.goldauto.top
echo.
pause
