From 2bedc686a53efe8015ca29a2403ef4942f449e78 Mon Sep 17 00:00:00 2001 From: david-ajax Date: Sun, 14 Sep 2025 02:07:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A9=BA=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 ++++++++++- electron/.keep | 0 main.py | 6 ++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 electron/.keep diff --git a/README.md b/README.md index d55209a..6ddbe41 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,16 @@ graph TD D --> H ``` -## 系统要求 +## 系统与平台要求 +- 依赖组件: Python 3.7+ (与 PIP), Git (半自动更新 & 安装需要), requirements.txt 中依赖包 +- 可选依赖: curl (首次下载需要) - 平台支持:Windows / macOS / Linux / Android (需要 Termux 或 Linux) (终端或浏览器) - 网络连接:可预缓存语音文件, 需联网使用大模型服务功能 + +运行此命令以在具备以上前置条件的计算机上快速安装/保留数据更新: +``` +curl -O https://gitea.imwangzhiyu.xyz/ajax/HeurAMS/raw/branch/main/tweak.py + +python3 tweak.py +``` \ No newline at end of file diff --git a/electron/.keep b/electron/.keep new file mode 100644 index 0000000..e69de29 diff --git a/main.py b/main.py index 551062c..70030f7 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,6 @@ from textual.app import App import screens +import os class AppLauncher(App): CSS_PATH = "styles.css" @@ -14,5 +15,10 @@ class AppLauncher(App): if __name__ == "__main__": + script_dir = os.path.dirname(os.path.abspath(__file__)) + os.chdir(script_dir) + os.makedirs("electron", exist_ok=True) + os.makedirs("nucleon", exist_ok=True) + os.makedirs("cache/voice", exist_ok=True) app = AppLauncher() app.run() \ No newline at end of file