Merge pull request #147 from JefferyHcool/feature/1.8.0

This commit is contained in:
Jianwu Huang
2025-06-20 09:47:01 +08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ import os
import uuid
load_dotenv()
api_path = os.getenv("API_BASE_URL", "http://localhost")
BACKEND_PORT= os.getenv("BACKEND_PORT", 8000)
BACKEND_PORT= os.getenv("BACKEND_PORT", 8483)
BACKEND_BASE_URL = f"{api_path}:{BACKEND_PORT}"

View File

@@ -27,7 +27,7 @@ REM --- 核心修改部分开始 ---
REM 步骤 1: 为了避免 PyInstaller 的解析歧义,我们先手动复制文件
echo 为打包准备 .env 文件...
copy .env.example backend/.env
copy .env.example backend\.env
REM 步骤 2: 执行 PyInstaller 打包,直接添加已存在的 .env 文件
echo 开始 PyInstaller 打包...
@@ -47,7 +47,7 @@ pyinstaller ^
REM 步骤 3: 清理在项目根目录创建的临时 .env 文件
echo 清理临时的 .env 文件...
del backend/.env
del backend\.env
REM --- 核心修改部分结束 ---