Files
37duAutomation/desktop/electron-shell/.env.example
T
puddy f27639777f build(desktop): 升级 electron-shell 版本至 1.6.3 并调整插件执行超时配置
- 插件执行超时默认延长至 6 小时,支持插件单独配置超时时间
- 新增插件根目录迁移逻辑,解决旧版权限问题
- 新增多个服务端实体、DTO、配置模块等基础代码
- 新增插件 UI 模板及相关静态资源
2026-10-15 11:38:45 +08:00

25 lines
1.3 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 37du Electron 壳:开发环境配置(拷贝为 .env 并修改)
# =============================================================
# 服务端地址(中心机控制面)
CONTROLPLANE_URL=http://117.72.191.188:8800
# 内部凭证(与中心机 controlplane/.env 的 CONTROLPLANE_TOKEN 保持一致;非空时发 X-API-Token)
CONTROLPLANE_TOKEN=
# 插件执行子进程的 Python 解释器(解析优先级:本变量 > 环境包 python-env/current.json > 系统 python)
# 开发推荐显式指定项目 .venv;正式打包后不设即可自动使用随包/下发的环境包
# PYTHON_EXE=D:\work\code\37duAutomation\.venv\Scripts\python.exe
# 环境包目录的显式覆盖(默认:打包态 exe 同级 python-env/;dev electron-shell/python-env/)
# SHELL_PYTHON_ENV_ROOT=D:\work\code\37duAutomation\desktop\electron-shell\python-env
# 插件执行超时(秒,默认 21600=6 小时)。长流程(耗时数小时)不再被默认 30 分钟强杀;
# 个别插件可在 plugin.json 声明 runTimeoutSeconds 覆盖(0=不限时),RUN_TIMEOUT=0 则全局不限时
RUN_TIMEOUT=21600
# 插件进程作业级内存上限(MB,环境包模式经 job_guard/Job Object 生效,默认 2048)
# RUN_MAX_MEM_MB=2048
# 调试:1 开启完整 JSON 调试日志
# DEBUG=1