Skip to content

feat: 新增 mcpp Hook 音频播放器包 - #712

Merged
Sunrisepeak merged 1 commit into
openxlings:mainfrom
helantianshen:feat/mcpp-hooks-audioplayer
Aug 29, 2026
Merged

feat: 新增 mcpp Hook 音频播放器包#712
Sunrisepeak merged 1 commit into
openxlings:mainfrom
helantianshen:feat/mcpp-hooks-audioplayer

Conversation

@helantianshen

@helantianshen helantianshen commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

说明

新增 mcpp-hooks-audioplayer 0.0.1,用作 mcpp 项目构建 Hook 的音频通知程序。

应用通过 build.mcpp 将三个 MP3 资源编入可执行文件,安装后不需要单独部署音频文件。它提供两个命令:

  • mcpp-hooks-audioplayer niulai-mm:随机播放 mama1.mp3mama2.mp3
  • mcpp-hooks-audioplayer niulai-niulai:播放 reply.mp3

使用方式

[hooks]
build_finished = "mcpp-hooks-audioplayer niulai-mm"
build_failed = "mcpp-hooks-audioplayer niulai-niulai"
side_effect = false

[xlings]
deps = ["xim:mcpp-hooks-audioplayer@0.0.1"]

包配置

  • Linux x86_64:静态 musl tarball。
  • Windows x86_64:MinGW zip。
  • latest 指向 0.0.1
  • 安装后通过 xvm 注册 mcpp-hooks-audioplayer 命令。
  • 配方使用已发布 Release 资源的固定下载地址和 SHA256。

验证

  • 重新下载两个 Release 资源并核对 SHA256:与配方一致。
  • pytest tests/m/test_mcpp_hooks_audioplayer.py -q:5 passed。
  • pytest tests/ -m static:1509 passed,10 skipped。
  • pytest tests/ -m isolation:400 passed,3 xpassed。
  • Linux Release 资源在隔离的 xlings 环境中完成下载、安装、shim 和 --help 验证。

@helantianshen helantianshen changed the title feat: add mcpp hooks audio player feat: 新增 mcpp Hook 音频播放器包 Aug 29, 2026
@Sunrisepeak
Sunrisepeak merged commit 667e9b8 into openxlings:main Aug 29, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants