From 4cc448266549951b8f750e7b44f27f3465ccd867 Mon Sep 17 00:00:00 2001 From: jiajiu123 <1771663559@qq.com> Date: Sun, 9 Mar 2025 11:15:51 +0800 Subject: [PATCH 1/2] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E5=82=BB?= =?UTF-8?q?=E7=93=9C=E5=BC=8F=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index fdfd10d05..772cd991d 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,8 @@ - [📦 手动部署指南 Linux](docs/manual_deploy_linux.md) +- 📦 Windows 一键傻瓜式部署,请运行项目根目录中的 ```run.bat```,部署完成后请参照后续配置指南进行配置 + ### 配置说明 - [🎀 新手配置指南](docs/installation_cute.md) - 通俗易懂的配置教程,适合初次使用的猫娘 - [⚙️ 标准配置指南](docs/installation_standard.md) - 简明专业的配置说明,适合有经验的用户 From 564350df876283a006bb724e2a0a77e11feab5b2 Mon Sep 17 00:00:00 2001 From: jiajiu123 <1771663559@qq.com> Date: Sun, 9 Mar 2025 11:16:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=A0=A1=E9=AA=8C=20Python=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.bat | 4 ++-- run.py | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/run.bat b/run.bat index 1d1385671..c0fd81324 100644 --- a/run.bat +++ b/run.bat @@ -1,6 +1,6 @@ @ECHO OFF chcp 65001 -REM python -m venv venv +python -m venv venv call venv\Scripts\activate.bat -REM pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade -r requirements.txt +pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade -r requirements.txt python run.py \ No newline at end of file diff --git a/run.py b/run.py index 0a195544f..549d15e9c 100644 --- a/run.py +++ b/run.py @@ -1,7 +1,7 @@ import os import subprocess import zipfile - +import sys import requests from tqdm import tqdm @@ -105,6 +105,11 @@ def install_napcat(): if __name__ == "__main__": os.system("cls") + if sys.version_info < (3, 9): + print("当前 Python 版本过低,最低版本为 3.9,请更新 Python 版本") + print("按任意键退出") + input() + exit(1) choice = input( "请输入要进行的操作:\n" "1.首次安装\n"