@echo off chcp 65001 >nul cd /d "%~dp0" echo ================================================ echo 天璇 一键构建工具 echo ================================================ echo. echo 本工具会自动: echo 1. 提交所有未提交的代码变更 echo 2. 创建版本标签 (VERSION) echo 3. 构建增量更新包 echo. :: Check portable Python exists if not exist "runtime\python\python.exe" ( echo [INFO] 使用系统 Python... set PYTHON=python ) else ( set PYTHON=runtime\python\python.exe ) %PYTHON% scripts/build_update.py --auto if %ERRORLEVEL% neq 0 ( echo. echo [ERROR] 构建失败,请检查错误信息 pause exit /b %ERRORLEVEL% ) echo. echo ================================================ echo ✅ 一键构建完成! echo ================================================ echo. echo 更新包已生成,复制到离线机后双击 update.bat echo. pause