release: v5.1.2 — 新增 Linux 启动器二进制 + Windows 构建脚本
This commit is contained in:
1 parent
85acc3c234
commit
8d7fa5536c
2 files changed
+42
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user