Files
DTU-RemtoeLCD/build_exe.bat
T

18 lines
502 B
Batchfile

@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
)