Publish GitHub 5fccb3e release tree
This commit is contained in:
@@ -14,28 +14,36 @@
|
||||
|
||||
## 📦 安装
|
||||
|
||||
### 通过公开 Gitea 仓库安装(无需登录)
|
||||
### 方法一:通过 ComfyUI Manager(推荐)
|
||||
|
||||
1. 在 ComfyUI 中打开 Manager
|
||||
2. 搜索 `Comfyui_o1key`
|
||||
3. 点击安装
|
||||
4. 重启 ComfyUI
|
||||
|
||||
### 方法二:手动安装
|
||||
|
||||
```bash
|
||||
cd ComfyUI/custom_nodes
|
||||
git clone https://git.o1key.com/publisher/comfyui_o1key.git
|
||||
git clone https://github.com/lizhongyi1209/comfyui_o1key.git
|
||||
cd comfyui_o1key
|
||||
python -m pip install -r requirements.txt
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
请在 ComfyUI 使用的 Python 环境中运行安装命令,然后重启 ComfyUI。之后可直接使用左侧功能栏的「更新」按钮。
|
||||
然后重启 ComfyUI。
|
||||
|
||||
### 已通过 GitHub 安装的用户
|
||||
### 国内用户安装(GitHub 拉取慢或失败时)
|
||||
|
||||
在节点包目录中把更新地址切换到 Gitea,即可继续保留现有安装和本地配置:
|
||||
使用 Gitee 镜像安装与更新,避免网络问题:
|
||||
|
||||
```bash
|
||||
cd ComfyUI/custom_nodes/comfyui_o1key
|
||||
git remote set-url origin https://git.o1key.com/publisher/comfyui_o1key.git
|
||||
git pull --ff-only origin main
|
||||
cd ComfyUI/custom_nodes
|
||||
git clone https://gitee.com/resonLzy/comfyui_o1key.git
|
||||
cd comfyui_o1key
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
仓库公开读取,无需为用户配置 Gitea 账号或令牌。
|
||||
自动更新脚本(见下方「更新插件」)已改为从 Gitee 拉取,国内用户可直接使用。
|
||||
|
||||
---
|
||||
|
||||
@@ -126,10 +134,16 @@ O1KEY_API_KEY=你的API密钥
|
||||
|
||||
### 界面更新
|
||||
|
||||
在本机 ComfyUI 左侧功能栏点击「更新」(位于「重启」下方)。按钮会从当前 Git 仓库的 `origin/main` 拉取最新版本;依赖列表有变化时,会在 ComfyUI 当前 Python 环境中自动安装。完成后点击「重启」使新版本生效。
|
||||
在 ComfyUI 左侧功能栏点击「更新」(位于「重启」下方)。按钮会从当前 Git 仓库的 `origin/main` 拉取最新版本。完成后点击「重启」使新版本生效。
|
||||
|
||||
界面更新需要通过 Git 安装、处于 `main` 分支,且节点包文件没有本地修改。更新仅允许快进,不会覆盖本地修改或删除配置。ZIP 安装、分支分叉或网络连接失败时,界面会显示原因,需要手动处理。
|
||||
为了防止其他网站或局域网设备触发本机的软件管理操作,「更新」和「重启」按钮只能在本机打开的 ComfyUI 页面使用。
|
||||
|
||||
如果提示依赖列表已变化,请在 ComfyUI 使用的 Python 环境中执行:
|
||||
|
||||
```bash
|
||||
cd ComfyUI/custom_nodes/comfyui_o1key
|
||||
python -m pip install -r requirements.txt
|
||||
```
|
||||
|
||||
### 手动更新
|
||||
|
||||
@@ -188,27 +202,26 @@ Google Gemini 模型节点,支持更多模型选择。
|
||||
|
||||
## ⚠️ 开发者注意事项
|
||||
|
||||
### 维护者:发布流程
|
||||
### 维护者:发布流程与镜像同步
|
||||
|
||||
`git.o1key.com` 是插件的公开发布仓库,用户的「更新」按钮从安装目录的 `origin/main` 获取版本。开发电脑首次切换发布地址并同步服务器已有更新:
|
||||
代码**先提交并推送到 GitHub**,再**同步到 Gitee 镜像**,国内用户通过 Gitee 拉取以解决网络问题。
|
||||
|
||||
**首次配置**(仅需一次):
|
||||
```bash
|
||||
git remote set-url origin https://git.o1key.com/publisher/comfyui_o1key.git
|
||||
git pull --ff-only origin main
|
||||
git remote add gitee https://gitee.com/resonLzy/comfyui_o1key.git
|
||||
```
|
||||
|
||||
**每次发布**:
|
||||
```bash
|
||||
git push origin main
|
||||
git push origin main # 先更新 GitHub
|
||||
git push gitee main # 再同步到 Gitee 镜像
|
||||
```
|
||||
|
||||
推送需要发布者的 Gitea 凭据;普通用户匿名拉取和界面更新无需登录。
|
||||
|
||||
### 文件编码要求
|
||||
|
||||
**所有文本文件必须使用 UTF-8 编码(无 BOM)!**
|
||||
|
||||
如果你在仓库网页上看到中文乱码,说明文件编码有问题。请使用以下方法修复:
|
||||
如果你在 GitHub 上看到中文乱码,说明文件编码有问题。请使用以下方法修复:
|
||||
|
||||
**Windows 用户:**
|
||||
|
||||
@@ -230,7 +243,7 @@ chmod +x fix_encoding.sh
|
||||
## 📮 联系方式
|
||||
|
||||
- GitHub: [@lizhongyi1209](https://github.com/lizhongyi1209)
|
||||
- 项目地址: https://git.o1key.com/publisher/comfyui_o1key
|
||||
- 项目地址: https://github.com/lizhongyi1209/comfyui_o1key
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user