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