Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

chore(repo): 对齐组织仓库与三项目边界

longmeidao0b08d22421fc
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
index 77342e51f..3a6008c8a 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: 安全漏洞
- url: https://github.com/longmeidao/peach/security/advisories/new
+ url: https://github.com/peach-mitao/peach/security/advisories/new
about: 走 Private vulnerability reporting,不要开公开 issue。
- name: 开发边界与门槛
- url: https://github.com/longmeidao/peach/blob/master/AGENTS.md
+ url: https://github.com/peach-mitao/peach/blob/master/AGENTS.md
about: 提 PR 前先读这份入口文件。
diff --git a/AGENTS.md b/AGENTS.md
index 38a2325ee..5b37a960d 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -51,7 +51,7 @@
## 工作规则
-- 只有 `peach-app` 同步到 GitHub;数据、工作树、构建输出、媒体与 CloudDrive 挂载不进 Git,目录边界见 ADR-0017。
+- 应用、官网、演示站分仓托管于 `peach-mitao`;数据、工作树、构建输出、媒体与挂载不进 Git,见 ADR-0017、0085。
- ledger 路径统一为 Windows 形态(`R:\Media\...`、`A:\...`、`B:\...`),由 `src/peach/platform.py` 读取时转换;不得改写成 POSIX 路径或在 macOS 写 `asset.path`。
- `peach-data/database/ledger.db` 是真相源,真实写入按 `peach-ledger-write`。代码判据确定、可按来源整批撤回的结果直接落库(ADR-0052);LLM 输出、打分、冲突与多候选只产生带来源与置信度的候选。测试只用临时数据库,可直接运行并修复本次改动造成的失败。
- 保留真实媒体、ledger 行、行为历史、凭据、网络与防火墙状态及无关长跑任务。
diff --git a/README.en.md b/README.en.md
index f42f0c5e8..1642d2c48 100644
--- a/README.en.md
+++ b/README.en.md
@@ -7,17 +7,17 @@
<p align="center">A private video library for yourself: local drives, cloud drives and the creators you follow, all in one place.</p>
<p align="center">
- <a href="https://github.com/longmeidao/peach/releases">Download for Windows</a> ·
+ <a href="https://github.com/peach-mitao/peach/releases">Download for Windows</a> ·
<a href="https://demo.peach.video">Live demo</a> ·
- <a href="https://github.com/longmeidao/peach/releases/tag/intro-video">Intro video</a> ·
- <a href="https://github.com/longmeidao/peach/issues">Report a problem</a> ·
+ <a href="https://github.com/peach-mitao/peach/releases/tag/intro-video">Intro video</a> ·
+ <a href="https://github.com/peach-mitao/peach/issues">Report a problem</a> ·
<a href="#documentation">Documentation</a> ·
<a href="README.md">中文</a>
</p>
<p align="center">
- <a href="https://github.com/longmeidao/peach/actions/workflows/test.yml"><img src="https://img.shields.io/github/actions/workflow/status/longmeidao/peach/test.yml?branch=master&amp;label=tests&amp;logo=githubactions&amp;logoColor=white" alt="tests"></a>
- <a href="https://github.com/longmeidao/peach/releases"><img src="https://img.shields.io/github/v/release/longmeidao/peach?include_prereleases&amp;label=release&amp;logo=github&amp;logoColor=white" alt="release"></a>
+ <a href="https://github.com/peach-mitao/peach/actions/workflows/test.yml"><img src="https://img.shields.io/github/actions/workflow/status/peach-mitao/peach/test.yml?branch=master&amp;label=tests&amp;logo=githubactions&amp;logoColor=white" alt="tests"></a>
+ <a href="https://github.com/peach-mitao/peach/releases"><img src="https://img.shields.io/github/v/release/peach-mitao/peach?include_prereleases&amp;label=release&amp;logo=github&amp;logoColor=white" alt="release"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-AGPL--3.0--or--later-blue?logo=gnu&amp;logoColor=white" alt="license"></a>
<img src="https://img.shields.io/badge/python-3.12%2B-3776AB?logo=python&logoColor=white" alt="Python 3.12+">
<img src="https://img.shields.io/badge/platform-Windows-0078D4?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0id2hpdGUiPjxwYXRoIGQ9Ik0xIDFoMTB2MTBIMXptMTIgMGgxMHYxMEgxM3pNMSAxM2gxMHYxMEgxem0xMiAwaDEwdjEwSDEzeiIvPjwvc3ZnPg%3D%3D" alt="Windows">
@@ -40,16 +40,16 @@ Want to look around before installing? The [live demo](https://demo.peach.video)
<table>
<tr>
- <td><img src="https://github.com/longmeidao/peach/releases/download/intro-video/peach-home.jpg" alt="Home"></td>
- <td><img src="https://github.com/longmeidao/peach/releases/download/intro-video/peach-performer.jpg" alt="Performer page"></td>
+ <td><img src="https://github.com/peach-mitao/peach/releases/download/intro-video/peach-home.jpg" alt="Home"></td>
+ <td><img src="https://github.com/peach-mitao/peach/releases/download/intro-video/peach-performer.jpg" alt="Performer page"></td>
</tr>
<tr>
<td align="center">Home: filter by source, length and tags</td>
<td align="center">Performer page: profile, aliases, links and every video</td>
</tr>
<tr>
- <td><img src="https://github.com/longmeidao/peach/releases/download/intro-video/peach-follow.jpg" alt="Following"></td>
- <td><img src="https://github.com/longmeidao/peach/releases/download/intro-video/peach-stats.jpg" alt="Statistics"></td>
+ <td><img src="https://github.com/peach-mitao/peach/releases/download/intro-video/peach-follow.jpg" alt="Following"></td>
+ <td><img src="https://github.com/peach-mitao/peach/releases/download/intro-video/peach-stats.jpg" alt="Statistics"></td>
</tr>
<tr>
<td align="center">Following: one creator's updates from several sites in one feed</td>
@@ -72,7 +72,7 @@ Want to look around before installing? The [live demo](https://demo.peach.video)
### Windows
-1. Download one of the two packages from [Releases](https://github.com/longmeidao/peach/releases):
+1. Download one of the two packages from [Releases](https://github.com/peach-mitao/peach/releases):
- Installer `Peach-<version>-windows-x64-setup.exe`: double-click to install. No administrator rights needed; Peach appears in the Start menu and can be uninstalled from Windows Settings.
- Portable `Peach-<version>-windows-x64.zip`: right-click it, choose "Extract All", then double-click `Peach.exe` inside.
2. Your browser opens the first-run setup page.
@@ -85,7 +85,7 @@ The test package is not code-signed yet. If Windows says "Windows protected your
You need Git, [uv](https://docs.astral.sh/uv/getting-started/installation/) and Python 3.12 or newer (uv downloads a missing interpreter for you):
```powershell
-git clone https://github.com/longmeidao/peach.git peach-app
+git clone https://github.com/peach-mitao/peach.git peach-app
cd peach-app
uv sync --locked --python 3.14
& .\.venv\Scripts\peach-tray.exe
@@ -120,7 +120,7 @@ LAN access, access passwords, updates and uninstalling are covered in [Operation
## Reporting problems
-Open an [issue](https://github.com/longmeidao/peach/issues) with the version, what you did, what you expected and what actually happened, ideally with a screenshot. Before taking screenshots, hide passwords, cookies, LAN addresses and full file paths, and do not upload database files or media. Report security issues privately as described in the [security policy](SECURITY.md).
+Open an [issue](https://github.com/peach-mitao/peach/issues) with the version, what you did, what you expected and what actually happened, ideally with a screenshot. Before taking screenshots, hide passwords, cookies, LAN addresses and full file paths, and do not upload database files or media. Report security issues privately as described in the [security policy](SECURITY.md).
## Documentation
diff --git a/README.md b/README.md
index dbde0c5bf..6fa7f8cd2 100644
--- a/README.md
+++ b/README.md
@@ -7,17 +7,17 @@
<p align="center">给自己用的私人影片馆藏:本地硬盘、网盘和关注的创作者,放在一个地方看。</p>
<p align="center">
- <a href="https://github.com/longmeidao/peach/releases">下载 Windows 版</a> ·
+ <a href="https://github.com/peach-mitao/peach/releases">下载 Windows 版</a> ·
<a href="https://demo.peach.video">在线演示</a> ·
- <a href="https://github.com/longmeidao/peach/releases/tag/intro-video">介绍视频</a> ·
- <a href="https://github.com/longmeidao/peach/issues">问题反馈</a> ·
+ <a href="https://github.com/peach-mitao/peach/releases/tag/intro-video">介绍视频</a> ·
+ <a href="https://github.com/peach-mitao/peach/issues">问题反馈</a> ·
<a href="#文档">文档</a> ·
<a href="README.en.md">English</a>
</p>
<p align="center">
- <a href="https://github.com/longmeidao/peach/actions/workflows/test.yml"><img src="https://img.shields.io/github/actions/workflow/status/longmeidao/peach/test.yml?branch=master&amp;label=tests&amp;logo=githubactions&amp;logoColor=white" alt="tests"></a>
- <a href="https://github.com/longmeidao/peach/releases"><img src="https://img.shields.io/github/v/release/longmeidao/peach?include_prereleases&amp;label=release&amp;logo=github&amp;logoColor=white" alt="release"></a>
+ <a href="https://github.com/peach-mitao/peach/actions/workflows/test.yml"><img src="https://img.shields.io/github/actions/workflow/status/peach-mitao/peach/test.yml?branch=master&amp;label=tests&amp;logo=githubactions&amp;logoColor=white" alt="tests"></a>
+ <a href="https://github.com/peach-mitao/peach/releases"><img src="https://img.shields.io/github/v/release/peach-mitao/peach?include_prereleases&amp;label=release&amp;logo=github&amp;logoColor=white" alt="release"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-AGPL--3.0--or--later-blue?logo=gnu&amp;logoColor=white" alt="license"></a>
<img src="https://img.shields.io/badge/python-3.12%2B-3776AB?logo=python&logoColor=white" alt="Python 3.12+">
<img src="https://img.shields.io/badge/platform-Windows-0078D4?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0id2hpdGUiPjxwYXRoIGQ9Ik0xIDFoMTB2MTBIMXptMTIgMGgxMHYxMEgxM3pNMSAxM2gxMHYxMEgxem0xMiAwaDEwdjEwSDEzeiIvPjwvc3ZnPg%3D%3D" alt="Windows">
@@ -40,16 +40,16 @@ https://github.com/user-attachments/assets/cc164de3-28d6-4fc9-8067-f2e70e94cb93
<table>
<tr>
- <td><img src="https://github.com/longmeidao/peach/releases/download/intro-video/peach-home.jpg" alt="首页"></td>
- <td><img src="https://github.com/longmeidao/peach/releases/download/intro-video/peach-performer.jpg" alt="女优页"></td>
+ <td><img src="https://github.com/peach-mitao/peach/releases/download/intro-video/peach-home.jpg" alt="首页"></td>
+ <td><img src="https://github.com/peach-mitao/peach/releases/download/intro-video/peach-performer.jpg" alt="女优页"></td>
</tr>
<tr>
<td align="center">首页:按来源、时长、标签筛选</td>
<td align="center">女优页:资料、别名、外部链接和全部作品</td>
</tr>
<tr>
- <td><img src="https://github.com/longmeidao/peach/releases/download/intro-video/peach-follow.jpg" alt="关注"></td>
- <td><img src="https://github.com/longmeidao/peach/releases/download/intro-video/peach-stats.jpg" alt="统计"></td>
+ <td><img src="https://github.com/peach-mitao/peach/releases/download/intro-video/peach-follow.jpg" alt="关注"></td>
+ <td><img src="https://github.com/peach-mitao/peach/releases/download/intro-video/peach-stats.jpg" alt="统计"></td>
</tr>
<tr>
<td align="center">关注:一个创作者在多个站点的更新汇到一起</td>
@@ -72,7 +72,7 @@ https://github.com/user-attachments/assets/cc164de3-28d6-4fc9-8067-f2e70e94cb93
### Windows
-1. 从 [Releases](https://github.com/longmeidao/peach/releases) 下载其中一种:
+1. 从 [Releases](https://github.com/peach-mitao/peach/releases) 下载其中一种:
- 安装包 `Peach-<版本>-windows-x64-setup.exe`:双击安装,不需要管理员权限,开始菜单里有 Peach,可以在系统设置里卸载。
- 免安装包 `Peach-<版本>-windows-x64.zip`:右键「全部解压」,双击里面的 `Peach.exe`。
2. 浏览器会打开首次设置页。
@@ -85,7 +85,7 @@ https://github.com/user-attachments/assets/cc164de3-28d6-4fc9-8067-f2e70e94cb93
需要 Git、[uv](https://docs.astral.sh/uv/getting-started/installation/) 和 Python 3.12 或更高(uv 会自动下载缺的解释器):
```powershell
-git clone https://github.com/longmeidao/peach.git peach-app
+git clone https://github.com/peach-mitao/peach.git peach-app
cd peach-app
uv sync --locked --python 3.14
& .\.venv\Scripts\peach-tray.exe
@@ -120,7 +120,7 @@ macOS 把后两条换成 `uv sync --locked --python 3.14 --extra macos` 和 `./.
## 问题反馈
-在 [Issues](https://github.com/longmeidao/peach/issues) 里写清楚版本号、做了什么、想要的结果和实际看到的结果,最好附截图。截图前遮掉密码、Cookie、局域网地址和文件完整路径,不要上传数据库文件或媒体。安全问题请按 [安全政策](SECURITY.md) 私下报告。
+在 [Issues](https://github.com/peach-mitao/peach/issues) 里写清楚版本号、做了什么、想要的结果和实际看到的结果,最好附截图。截图前遮掉密码、Cookie、局域网地址和文件完整路径,不要上传数据库文件或媒体。安全问题请按 [安全政策](SECURITY.md) 私下报告。
## 文档
diff --git a/docs/TESTING_DESKTOP.md b/docs/TESTING_DESKTOP.md
index 33b03e5a9..5672d2738 100644
--- a/docs/TESTING_DESKTOP.md
+++ b/docs/TESTING_DESKTOP.md
@@ -1,6 +1,6 @@
# Windows 测试版
-Windows 测试版有安装包和免安装包两种,程序文件相同,都不需要安装 Python、Git、Node 或 OpenSSL。macOS 暂无独立包,请按 [README](https://github.com/longmeidao/peach) 从源码运行。
+Windows 测试版有安装包和免安装包两种,程序文件相同,都不需要安装 Python、Git、Node 或 OpenSSL。macOS 暂无独立包,请按 [README](https://github.com/peach-mitao/peach) 从源码运行。
| | 安装包 | 免安装包 |
| --- | --- | --- |
@@ -12,7 +12,7 @@ Windows 测试版有安装包和免安装包两种,程序文件相同,都不
## 开始使用
-1. 从 [GitHub Releases](https://github.com/longmeidao/peach/releases) 下载其中一种,以及 `SHA256SUMS.txt`。
+1. 从 [GitHub Releases](https://github.com/peach-mitao/peach/releases) 下载其中一种,以及 `SHA256SUMS.txt`。
2. 核对哈希:在 PowerShell 里运行 `Get-FileHash .\<下载的文件名>`,结果应与 `SHA256SUMS.txt` 里对应的那一行相同(不区分大小写)。
3. 安装包:双击,按提示完成安装,最后一步勾选「运行 Peach」。免安装包:右键压缩包,选「全部解压」,保留整个 `Peach` 文件夹,不要只拿出 `Peach.exe`,然后双击 `Peach.exe`。
4. 浏览器会打开首次设置页。
@@ -77,7 +77,7 @@ Windows 第一次询问防火墙权限时,只勾选「专用网络」。
4. 在「高清封面」里填一个馆藏里已有的番号,点「抓取封面」。只有新图能完整解码、而且像素比现有封面大时才替换;失败时保留已有的图。同一个番号 24 小时内抓成功过,会直接用本机已有的文件。
5. 需要 Cookie 的来源(例如 FC2)选「粘贴 Cookie」或「导入文件」其中一种,文件支持 Netscape 格式的 `.txt`。Cookie 只保存在这台电脑上,不同电脑之间不共享。
-「已保存」只表示 Cookie 存下来了,不代表登录仍然有效。撤销后,这个来源需要登录的采集要重新提供 Cookie。浏览器里的 Cookie 不能直接导入,只能粘贴或导入文件。更多来源的说明见 [来源采集](https://github.com/longmeidao/peach/blob/master/docs/SOURCING.md)。
+「已保存」只表示 Cookie 存下来了,不代表登录仍然有效。撤销后,这个来源需要登录的采集要重新提供 Cookie。浏览器里的 Cookie 不能直接导入,只能粘贴或导入文件。更多来源的说明见 [来源采集](https://github.com/peach-mitao/peach/blob/master/docs/SOURCING.md)。
## 更新
diff --git a/docs/adr/0085-organization-and-three-code-repositories.md b/docs/adr/0085-organization-and-three-code-repositories.md
new file mode 100644
index 000000000..ab7a49210
--- /dev/null
+++ b/docs/adr/0085-organization-and-three-code-repositories.md
@@ -0,0 +1,28 @@
+# ADR-0085:组织与三个代码仓库
+
+- 状态:已接受
+- 日期:2026-09-30
+
+## 背景
+
+Peach 应用、官网和演示站具有不同的运行入口、依赖和发布目标。用户决定将三个项目分别公开源码,统一托管于 GitHub 组织 `peach-mitao`。
+
+## 决策
+
+| 仓库 | 范围 | 入口 |
+| --- | --- | --- |
+| `peach-mitao/peach` | 应用、前端源码、测试、发行与项目文档 | Peach 自托管服务 |
+| `peach-mitao/peach-site` | 官网页面、交互、文字编辑预览与部署配置 | `peach.video` |
+| `peach-mitao/peach-demo` | 演示 Worker、回放协议、演示交互与部署配置 | `demo.peach.video` |
+
+应用仓库通过 GitHub 转移功能保留提交、标签、发行与问题记录。应用主分支保持 `master`,站点主分支使用 `main`。本机目录和生产入口保持现有布局。
+
+网站代码与素材分开管理。演示录制数据、媒体、凭据、数据库、本地证据、缓存和构建输出不进入公开 Git 仓库;部署所需的素材与录制包在本地发布目录中提供。官网媒体清单只记录公开资源地址与内容哈希。
+
+演示前端由应用仓库的 `web/` 构建产物同步;源码的真相仍在应用仓库。独立演示工程不复制整份应用源码。三个项目各自声明依赖、许可证范围、预览方式和发布验证入口。
+
+## 影响
+
+GitHub 仓库地址、下载入口、发行查询和发行脚本使用组织地址。GitHub 提供的旧地址重定向承接既有链接;历史 ADR 与尚未重新构建的客户端保留其原有引用。
+
+组织资料页列出三个项目和官网、演示站、下载与反馈入口。组织成员和账单、双因素认证及第三方凭据不由分仓操作调整。
diff --git a/pyproject.toml b/pyproject.toml
index ff77b6f08..643358661 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -48,9 +48,9 @@ dependencies = [
]
[project.urls]
-Homepage = "https://github.com/longmeidao/peach"
-Repository = "https://github.com/longmeidao/peach"
-Issues = "https://github.com/longmeidao/peach/issues"
+Homepage = "https://github.com/peach-mitao/peach"
+Repository = "https://github.com/peach-mitao/peach"
+Issues = "https://github.com/peach-mitao/peach/issues"
[project.scripts]
peach = "peach.cli:main"
diff --git a/scripts/changelog.py b/scripts/changelog.py
index d90e65499..50b56d4fa 100644
--- a/scripts/changelog.py
+++ b/scripts/changelog.py
@@ -297,7 +297,7 @@ def release(root: Path, version: str, *, repo: str, spec: str, today: str | None
def main(argv=None) -> int:
parser = argparse.ArgumentParser(description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
- parser.add_argument("--repo", default="longmeidao/peach")
+ parser.add_argument("--repo", default="peach-mitao/peach")
parser.add_argument("--range", dest="spec", help="提交区间,默认上一个版本标签到 HEAD")
parser.add_argument("--release", help=f"把{UNRELEASED}节定版成这个版本号")
parser.add_argument("--apply", action="store_true", help=f"写进 {CHANGELOG}")
diff --git a/scripts/installer/peach.iss b/scripts/installer/peach.iss
index ad311d816..0246b8ee5 100644
--- a/scripts/installer/peach.iss
+++ b/scripts/installer/peach.iss
@@ -20,8 +20,8 @@ AppName=Peach
AppVersion={#AppVersion}
AppVerName=Peach {#AppVersion}
AppPublisher=Peach
-AppPublisherURL=https://github.com/longmeidao/peach
-AppSupportURL=https://github.com/longmeidao/peach/issues
+AppPublisherURL=https://github.com/peach-mitao/peach
+AppSupportURL=https://github.com/peach-mitao/peach/issues
; 只装到当前用户:自更新在程序目录旁边建事务目录再整目录切换,Program Files 不可写。
PrivilegesRequired=lowest
DefaultDirName={userpf}\Peach
diff --git a/scripts/release_tag.py b/scripts/release_tag.py
index 592d21274..2fbbeb77a 100644
--- a/scripts/release_tag.py
+++ b/scripts/release_tag.py
@@ -225,7 +225,7 @@ def plan(repo: str) -> dict:
def main(argv=None) -> int:
parser = argparse.ArgumentParser(description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
- parser.add_argument("--repo", default="longmeidao/peach")
+ parser.add_argument("--repo", default="peach-mitao/peach")
parser.add_argument("--apply", action="store_true",
help="真的动手:带 --bump 时写版本号与变更日志,带 --ship 时走完发布,"
"都不带时创建并推送标签")
diff --git a/src/peach/release_updates.py b/src/peach/release_updates.py
index 6b8328b7b..48b5400bf 100644
--- a/src/peach/release_updates.py
+++ b/src/peach/release_updates.py
@@ -8,8 +8,8 @@ import httpx
from . import __version__, distribution
from .http import HttpRequest, HttpxTransport
-RELEASES_URL = "https://github.com/longmeidao/peach/releases"
-API_URL = "https://api.github.com/repos/longmeidao/peach/releases?per_page=100"
+RELEASES_URL = "https://github.com/peach-mitao/peach/releases"
+API_URL = "https://api.github.com/repos/peach-mitao/peach/releases?per_page=100"
def snapshot() -> dict:
diff --git a/tests/test_repo_hygiene.py b/tests/test_repo_hygiene.py
index a0e08e6b4..283abf61d 100644
--- a/tests/test_repo_hygiene.py
+++ b/tests/test_repo_hygiene.py
@@ -523,7 +523,7 @@ class MachineCoordinateTests(unittest.TestCase):
r"C:\Users\RUNNER~1\AppData\Local\Temp", "/home/runner/work",
"https://www.pixiv.net/users/93812377",
"Chrome/131.0.0.0", "10.0.26200.1234", r"R:\media",
- "https://github.com/longmeidao/peach",
+ "https://github.com/peach-mitao/peach",
"Copyright (C) 2026 longmeidao"):
self.assertIsNone(MACHINE_COORDINATE.search(allowed), allowed)