Skip to content

armgit / peach

Public Imported from GitHub
0

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

test(packaging): 核对 Mac 原生资源布局并覆盖采集打包选测

longmeidaoe9b73e280e13
diff --git a/docs/TESTING_DESKTOP.md b/docs/TESTING_DESKTOP.md
index 0658719ac..7bebb6538 100644
--- a/docs/TESTING_DESKTOP.md
+++ b/docs/TESTING_DESKTOP.md
@@ -83,7 +83,7 @@ Windows 第一次询问防火墙权限时,只勾选「专用网络」。
## 采集来源
-Windows 完整安装包、免安装包、轻量安装包与应用更新包均随附 amane `0.20.0` 的独立 console 桥,使用者无需安装 Python、uv 或 Git。运行目录位于程序资源中的 `_internal\tools\amane-runtime`;桥属于应用必需资源,不随可选媒体工具拆分。macOS 独立应用在 `Contents/Resources/tools/amane-runtime` 携带对应架构的桥。
+Windows 完整安装包、免安装包、轻量安装包与应用更新包均随附 amane `0.20.0` 的独立 console 桥,使用者无需安装 Python、uv 或 Git。运行目录位于程序资源中的 `_internal\tools\amane-runtime`;桥属于应用必需资源,不随可选媒体工具拆分。macOS 独立应用在 `Contents/Frameworks/tools/amane-runtime` 携带对应架构的桥,数据资源通过应用内链接映射到 `Contents/Resources`。
桌面构建调用 `scripts/build_amane_runtime.py`,按桥的 `uv.lock` 安装独立构建环境,再复用主锁固定的 PyInstaller 生成运行目录。构建会执行 `--self-check`,离线载入运行时与全部 Peach 开放站点类;站点连接检查仍需实际网络。目录中的 `manifest.json` 记录版本、完整 revision 和可执行文件相对路径。GPL-3.0 许可证、来源说明、amane 完整对应源码,以及 zhconv 和 certifi 的固定源码随运行目录一起分发。
diff --git a/scripts/smoke_macos.py b/scripts/smoke_macos.py
index 639380e87..5c69d3e4d 100644
--- a/scripts/smoke_macos.py
+++ b/scripts/smoke_macos.py
@@ -57,7 +57,7 @@ def main() -> int:
headers={"Origin": base})
with opener.open(request, timeout=10) as response:
assert response.status == 200
- assert_amane_runtime(opener, base, executable.parent.parent / 'Resources/tools/amane-runtime')
+ assert_amane_runtime(opener, base, executable.parent.parent / 'Frameworks/tools/amane-runtime')
for path in ("/", "/dist/peach-app.js", "/dist/peach-app.css", "/api/items",
"/healthz?ready=1"):
with opener.open(base + path, timeout=30) as response:
diff --git a/scripts/test_runner.py b/scripts/test_runner.py
index 23e874c30..88a956282 100644
--- a/scripts/test_runner.py
+++ b/scripts/test_runner.py
@@ -153,7 +153,7 @@ SCOPES: dict[str, tuple[str, ...]] = {
"test_cli.py", "test_server.py", "test_versioning.py", "test_frontend_build.py",
"test_cloudflared_packaging.py", "test_desktop_installer.py",
"test_ffmpeg_build.py", "test_ffmpeg_bundle.py", "test_untrunc_build.py", "test_macos_media.py",
- "test_face_models_bundle.py"),
+ "test_face_models_bundle.py", "test_metadata_amane_bridge.py"),
}
SCOPE_TEST_IDS: dict[str, tuple[str, ...]] = {