diff --git a/REFERENCE.md b/REFERENCE.md index 29033d4..f453a2e 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -310,7 +310,9 @@ mpv --idle=yes --no-video --force-window=no --audio-display=no --no-terminal \ 本技能目录同时是一个可独立使用的 CLI:入口 `scripts/netease-music.sh`,standalone 安装用 `scripts/install-cli.sh`(链接成 `netease-music` 并查 node/mpv/python3),发布镜像用 -`scripts/publish.sh`。消费者(Emacs 包 etaf-ncm、其他脚本)只依赖本节与 `--json` 输出, +`scripts/publish.sh`。**命名规范**:公开镜像仓叫 `<工具>-cli`(这里是 +`netease-music-cli`),装出来的命令仍叫 `<工具>`(`netease-music`)——仓名标交付物类型, +命令名只管好敲。消费者(Emacs 包 etaf-ncm、其他脚本)只依赖本节与 `--json` 输出, 不读实现、不读状态文件。 - **版本**:`netease-music version` / `--version`(读 `VERSION`)。破坏性改动抬高 minor(0.x 期间),并在本节记录。 diff --git a/scripts/publish.sh b/scripts/publish.sh index d06651c..1d43a98 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -8,7 +8,7 @@ version="$(cat "$here/VERSION")" dry=0 ok=0; failed=0 [ "${1:-}" = "--dry-run" ] && dry=1 -remotes="${NETEASE_MUSIC_PUBLISH_REMOTES:-git@gitea.gklazycat.heiyu.space:geekinney/netease-music.git https://gitea.vhkd.top/geekinney/netease-music.git}" +remotes="${NETEASE_MUSIC_PUBLISH_REMOTES:-git@gitea.gklazycat.heiyu.space:geekinney/netease-music-cli.git https://gitea.vhkd.top/geekinney/netease-music-cli.git}" # 门禁:先过测试再发布。 (cd "$here" && node --test tests/*.test.mjs >/dev/null) for remote in $remotes; do