Commit f93b1824 authored by bin.gong's avatar bin.gong

Update Makefile

parent 09faff57
...@@ -30,7 +30,12 @@ install: ...@@ -30,7 +30,12 @@ install:
@echo "检查 npm 版本..." @echo "检查 npm 版本..."
@$(NPM) --version @$(NPM) --version
@echo "正在使用 uv 安装Python依赖..." @echo "正在使用 uv 安装Python依赖..."
@cd backend && $(UV) venv .venv --force @cd backend && if [ ! -d ".venv" ]; then \
echo "正在使用 uv 创建虚拟环境..."; \
$(UV) venv .venv; \
else \
echo "虚拟环境已存在,跳过创建步骤。"; \
fi
@cd backend && $(UV) pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ @cd backend && $(UV) pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
@echo "正在安装Node.js依赖..." @echo "正在安装Node.js依赖..."
@cd frontend && $(NPM) install @cd frontend && $(NPM) install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment