✨ (kmoe): 新增 Kmoe 漫画书源,按卷下载 EPUB 阅读

书城搜索与筛选、详情、卷列表、整卷 EPUB 下载与缓存、收藏书架同步。
支持邮箱密码、浏览器授权、粘贴 Cookie 登录;下载要求 UA 与登录时一致,
会话 UA 随 Cookie 一起保存。
This commit is contained in:
Garfield committed 2026-11-27 13:00:01 +08:00
commit 1dd1cccb68
24 files changed
+2522

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# 离线单元测试:借用月读仓库的测试运行器与桩,把本仓库的插件目录和 tests/ 加进 LUA_PATH。
# 用法:MOON_DIR=/path/to/moon tools/run-tests.sh [spec 文件…]
set -euo pipefail
here="$(cd "$(dirname "$0")/.." && pwd)"
: "${MOON_DIR:?请把 MOON_DIR 设为月读仓库路径}"
paths="$here/tests/?.lua;$here/tests/?/init.lua"
for plugin in "$here"/moonsource-*.koplugin; do
paths="$paths;$plugin/?.lua"
done
export LUA_PATH="$paths;;"
if [ "$#" -eq 0 ]; then
set -- $(find "$here/tests" -name '*_spec.lua' | sort)
fi
cd "$MOON_DIR"
exec luajit tests/run.lua "$@"