增加日志功能,增加打包成exe功能,点击exe就可以使用
This commit is contained in:
17
build_exe.bat
Normal file
17
build_exe.bat
Normal file
@@ -0,0 +1,17 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
echo 正在打包 DTU-RemoteLCD 为 exe ...
|
||||
echo.
|
||||
|
||||
rem 使用当前环境中的 python 和 pip,而不是系统默认 pip
|
||||
python -m pip install pyinstaller -q
|
||||
python -m PyInstaller remo_disp_server.spec --noconfirm
|
||||
|
||||
if %ERRORLEVEL% equ 0 (
|
||||
echo.
|
||||
echo 打包完成。可执行文件: dist\remo_disp_server.exe
|
||||
echo 直接双击运行,或在命令行: dist\remo_disp_server.exe [装置IP]
|
||||
) else (
|
||||
echo 打包失败,请检查错误信息。
|
||||
exit /b 1
|
||||
)
|
||||
Reference in New Issue
Block a user