feat: 添加GUI构建目标并更新文档
添加Makefile中的GUI构建目标,更新README文档结构,调整默认参数值,优化webview应用的生产环境检测逻辑
This commit is contained in:
@@ -562,7 +562,14 @@ def start_webview():
|
||||
# 确定前端 URL
|
||||
# 在开发环境中使用 Vite 开发服务器
|
||||
# 在生产环境中使用构建后的文件
|
||||
dev_mode = os.getenv('EGM_DEV_MODE', 'true').lower() == 'true'
|
||||
|
||||
# 检查是否在打包环境中运行
|
||||
if getattr(sys, 'frozen', False):
|
||||
# 打包环境:强制使用生产模式,禁用调试
|
||||
dev_mode = False
|
||||
else:
|
||||
# 开发环境:通过环境变量控制
|
||||
dev_mode = os.getenv('EGM_DEV_MODE', 'true').lower() == 'true'
|
||||
|
||||
if dev_mode:
|
||||
# 开发模式:使用 Vite 开发服务器
|
||||
|
||||
Reference in New Issue
Block a user