Files
37duAutomation/desktop/fileserver/tools/build.bat
T
puddy b034b51685 feat: 新增内网文件服务器离线监控,升级ERP报表导出插件适配新旧系统差异
1.  新增内网文件服务器心跳上报与离线监控功能:
    - 为文件服务器添加周期心跳上报到中心机的能力
    - 中心机新增文件服务器状态监控线程,超时自动判离线并钉钉告警管理员
    - 新增数据库表存储文件服务器状态,提供管理端API查看在线状态
2.  修复ERP物料收发汇总报表插件:
    - 调整插件版本到1.0.9,更新前端配置与UI适配新旧ERP系统
    - 重构组织与仓库默认值逻辑,区分新版/旧版ERP的默认配置
    - 统一所有场景下显式设置查询组织,移除旧版默认组织的兼容逻辑
    - 新增代管仓仓库编码适配旧版系统
3.  优化文件服务器打包脚本路径,更新文档示例命令
2026-09-19 14:55:22 +08:00

32 lines
1.1 KiB
Batchfile

@echo off
REM ===== 37du intranet file server build script (run on Windows) =====
REM prereq: desktop/.venv with fastapi uvicorn python-multipart pyinstaller
REM usage: run inside desktop\ directory with project .venv
setlocal
cd /d %~dp0\..\..
set PY=..\.venv\Scripts\python.exe
if not exist %PY% (
echo [err] PYTHON NOT FOUND: %PY% - run from desktop\ and ensure .venv exists
pause & exit /b 1
)
echo [1/3] building exe ...
%PY% -m PyInstaller fileserver\tools\37du-fileserver.spec ^
--distpath fileserver\dist-exe ^
--workpath fileserver\build-exe ^
--noconfirm
if errorlevel 1 (echo [err] BUILD FAILED & pause & exit /b 1)
echo [2/3] assembling deploy dir ...
set DEP=fileserver\dist-exe\fileserver
if not exist %DEP% mkdir %DEP%
REM copy .env next to exe (contains FILESERVER_BASE_URL pointing to intranet)
copy /y fileserver\.env %DEP%\.env >nul
move /y fileserver\dist-exe\37du-fileserver.exe %DEP%\37du-fileserver.exe >nul
echo [3/3] done.
echo deploy dir: %DEP%
echo deploy to 172.30.35.135: adjust FILESERVER_BASE_URL/TOKEN in .env, then run install_autostart.bat
pause