diff --git a/build_exe.bat b/build_exe.bat new file mode 100644 index 0000000..a2c5597 --- /dev/null +++ b/build_exe.bat @@ -0,0 +1,42 @@ +@echo off +chcp 65001 >nul 2>&1 +title 小狸 Pro-CLI - 构建 EXE + +echo. +echo ╔══════════════════════════════════════╗ +echo ║ 小狸 Pro-CLI EXE 构建脚本 ║ +echo ╚══════════════════════════════════════╝ +echo. + +:: 检测 Python +where python >nul 2>&1 +if %errorlevel% neq 0 ( + echo [错误] 未检测到 Python,请先安装 Python 3.10+ + pause + exit /b 1 +) + +:: 安装 PyInstaller +echo [1/3] 安装 PyInstaller... +pip install pyinstaller --quiet +if %errorlevel% neq 0 ( + echo [错误] PyInstaller 安装失败 + pause + exit /b 1 +) + +:: 编译 EXE +echo [2/3] 正在编译 launcher.exe ... +pyinstaller --onefile --name launcher --clean --noconfirm launcher.py +if %errorlevel% neq 0 ( + echo [错误] 编译失败 + pause + exit /b 1 +) + +:: 完成 +echo [3/3] 编译完成! +echo. +echo EXE 位置: dist\launcher.exe +echo. +pause diff --git a/xiaoli-cli-v5.1.2.zip b/xiaoli-cli-v5.1.2.zip index 0c6988b..57e5aa2 100644 Binary files a/xiaoli-cli-v5.1.2.zip and b/xiaoli-cli-v5.1.2.zip differ