Skip to content

armgit / peach

Public Imported from GitHub
0

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

docs: 下载制品的边界与 tag 发布流程

longmeidao5d0e1307f1c4
diff --git a/README.en.md b/README.en.md
index d41dd2e93..4e904b1c3 100644
--- a/README.en.md
+++ b/README.en.md
@@ -72,6 +72,10 @@ The repository stores no media, databases, credentials, logs, `.venv`, build out
- **openssl** (optional, HTTPS only): required to generate the local CA. On Windows it usually comes from Git for Windows (choose the option that puts the Unix tools on `PATH`). Without it `peach init` prints that no local CA was generated and completes normally; once installed, `peach init --force` fills it in.
- Node is not a runtime prerequisite; it only maintains the pinned frontend files (see "Dependency maintenance").
+## Downloads
+
+Every `v<version>` tag publishes two archives on GitHub Releases: `Peach-<version>-windows-x64.zip` (a single-file `Peach.exe`) and `Peach-<version>-macos-<arch>.zip` (the menu-bar `Peach.app`). They are only the tray and menu-bar entry points, not a portable build: the service process still runs from the repository's `.venv`, so complete the three steps under "Installation" first, then place the extracted `Peach.exe` somewhere inside the repository (for example `dist\Peach\`); double-clicking the macOS `Peach.app` only kicks the LaunchAgent, which is registered with `./.venv/bin/python scripts/install_macos_agent.py install`. FFmpeg is still installed by you, as listed under Prerequisites. The tray's "Check for updates" only reports the version for these archives; it downloads and installs nothing (ADR-0012).
+
## Installation
Three steps, with no directories or configuration files to prepare in advance. Run from the repository root:
diff --git a/README.md b/README.md
index 4620b4848..1d015f287 100644
--- a/README.md
+++ b/README.md
@@ -69,6 +69,10 @@ peach-app/
- **openssl**(可选,仅 HTTPS):生成本机 CA 的前置。Windows 上通常来自 Git for Windows(安装时选把 Unix 工具放进 `PATH`)。缺了 `peach init` 打印「未生成本机 CA」并正常完成,装好后 `peach init --force` 补上。
- Node 不是运行前置,只用于维护固定的前端文件(见「依赖维护」)。
+## 下载制品
+
+每个 `v<版本>` tag 在 GitHub Releases 挂两个压缩包:`Peach-<版本>-windows-x64.zip`(单文件 `Peach.exe`)与 `Peach-<版本>-macos-<arch>.zip`(菜单栏 `Peach.app`)。它们只是托盘与菜单栏的入口,不是免安装的绿色版:服务进程仍由仓库的 `.venv` 承担,所以先按下面「安装」完成三步,再把解压出的 `Peach.exe` 放进仓库目录下(例如 `dist\Peach\`);macOS 的 `Peach.app` 双击只是唤起 LaunchAgent,先 `./.venv/bin/python scripts/install_macos_agent.py install` 注册。FFmpeg 仍按前置条件自装。托盘「检查更新」对制品只报告版本,不下载也不安装更新(ADR-0012)。
+
## 安装
三步,不需要事先准备任何目录或配置文件。在仓库根目录执行:
diff --git a/docs/OPERATIONS.md b/docs/OPERATIONS.md
index f76717a8e..a42743f8a 100644
--- a/docs/OPERATIONS.md
+++ b/docs/OPERATIONS.md
@@ -81,6 +81,7 @@ launchctl kickstart -k gui/$(id -u)/gg.lmd.peach.tray
- Windows 日常入口是当前用户 Startup 里唯一的 `Peach.lnk`,指向项目内的 `dist\Peach\Peach.exe`。
- 发布入口是 `scripts/build_windows.ps1`:先用 `scripts/generate_brand_assets.py` 生成方形 Logo 与多尺寸 `.ico`,再构建单一 `dist/Peach/Peach.exe`;无参数运行托盘,`serve`/`migrate` 运行 CLI。桌面快捷方式由 `scripts/create_desktop_shortcut.ps1` 创建,自启动只由 `scripts/manage_tray_startup.ps1` 管理。
+- 对外发布由 `.github/workflows/release.yml` 承担:推 `v<__version__>` 形式的 tag(`v0.7.13` ↔ `0.7.13`)就在 GitHub 上跑 `build_windows.ps1` 与 `build_macos_app.py`,产出 `Peach-<版本>-windows-x64.zip` 与 `Peach-<版本>-macos-<arch>.zip` 并挂到同名 Release;tag 与 `__version__` 不一致在构建前失败。Release 正文取附注 tag 的正文,轻量 tag 由 GitHub 按提交历史生成。`workflow_dispatch` 只上传 artifact,不发布。
- 刷新源码运行态不要用 Computer Use 点托盘:`python scripts/restart_windows_tray.py` 按精确 EXE 路径找到 pystray 隐藏窗口、发送正常停止消息、等托盘自行关闭子服务,再静默启动并核对新托盘重新拥有两个服务;找不到唯一窗口或退出超时就拒绝,绝不强杀后另启。
- `dist/Peach/Peach.exe` 是本机打包入口而不是可移动的独立发行版:托盘只打包了自己,服务进程仍由项目 venv 的 `peach.exe` 承担,`_peach_executable()` 从 exe 位置逐级向上找 `.venv\Scripts\peach.exe`,所以不要按「单文件绿色版」对外描述。
- PyInstaller 的资源直接位于 `sys._MEIPASS`,没有源码树的 `src/` 层;打包后的 `migrate`、Web 与品牌资源必须从这里解析,不能对 `config.py` 固定取 `parents[2]`。
@@ -99,7 +100,7 @@ launchctl kickstart -k gui/$(id -u)/gg.lmd.peach.tray
## 版本、更新与自我重启
-- `src/peach/__init__.py::__version__` 是版本唯一来源,采用 pre-1.0 SemVer;Git commit 是构建标识,`vX.Y.Z` 是本地发布点。
+- `src/peach/__init__.py::__version__` 是版本唯一来源,采用 pre-1.0 SemVer;Git commit 是构建标识,`vX.Y.Z` tag 是发布点,推到 GitHub 即触发 Release 工作流(见「桌面入口与发布」)。
- 「检查更新」只 fetch 和比较;「同步开发进度」只做 `merge --ff-only`,不 stash、不 rebase、不 `--force`——并行工作树和主检出共用同一个对象库与 reflog,任何改写历史的「顺手解决」都会把别的分支一起拖下去。工作区脏或两边分叉时原样报出来交给人。
- 快进动到 `tray.py`/`menubar.py`/`versioning.py`/`certs.py`/`netwatch.py`/`config.py`/`pyproject.toml` 时只重启子服务追不上,托盘要靠 `launchctl kickstart -k` 重启自己,顺序必须先 `stop_owned()` 再 kickstart,且前提是 launchd 报的 pid 等于自己的 pid。
diff --git a/docs/PRODUCT_BACKLOG.md b/docs/PRODUCT_BACKLOG.md
index 0ca9f055a..4d063dab4 100644
--- a/docs/PRODUCT_BACKLOG.md
+++ b/docs/PRODUCT_BACKLOG.md
@@ -28,7 +28,7 @@
13. `/healthz` 的 `db` 判据改为「`schema_migration` 有行」:目前只看文件存在,空账本也报 available。
14. 界面国际化:界面目前只有中文,先补英文。
15. Python 下限:评估从 3.14 降到 3.12,并把两个版本都进 CI 矩阵。
-16. 可下载制品与更新渠道:tag 触发的 Release 工作流产出 Windows 与 macOS 包;托盘「检查更新」目前只对 git 检出成立,要对下载的制品也成立。
+16. 制品对下载者可用与更新渠道:Release 工作流已按 tag 产出 Windows 与 macOS 压缩包,但两者都只是托盘/菜单栏入口,服务仍由仓库 `.venv` 承担,下载者仍要先完成源码安装;要做成不依赖检出的独立发行版,并让托盘「检查更新」对下载的制品也成立(目前只对 git 检出成立)。
17. 「第一个小时」教程与故障排查文档:init → 声明来源根 → scan → 打开页面 → 手机信任 CA → 托盘/菜单栏自启动,每一步写清失败表现与对应的排查动作。
18. 项目网站:一页说明是什么、截图、安装入口与文档链接。