@echo off
rem LeoAPI one-click setup (Windows, double-click version).
rem Downloads the latest https://leoapi.ai/setup.ps1 and runs it; no admin rights needed.
rem The PowerShell part stays ASCII: cmd hands it over in the console code page.
chcp 65001 >nul
title LeoAPI setup
echo 正在下载狮子API一键接入脚本……
powershell -NoProfile -ExecutionPolicy Bypass -Command "try { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor 3072; irm https://leoapi.ai/setup.ps1 | iex } catch { Write-Host ('Download failed: ' + $_.Exception.Message) -ForegroundColor Red }"
echo.
pause
