@@ -2186,9 +2186,6 @@ build_start = "echo build started"
21862186build_failed = " notify-send 'build failed'"
21872187build_finished = " notify-send 'build finished'"
21882188
2189- # Runs alongside the build and is stopped when it ends.
2190- during_build = { cmd = " mcpp-hooks-audioplayer bgm" , loop = true }
2191-
21922189# Optional; these are the defaults.
21932190timeout_seconds = 10
21942191enabled = true
@@ -2239,8 +2236,8 @@ build_start
22392236 └─ build fails → during_build closes → build_failed
22402237```
22412238
2242- ` during_build ` closes ** before** the terminal hook, so a "build finished" sound
2243- is not competing with the background music it replaces .
2239+ ` during_build ` closes ** before** the terminal hook, so the two commands never
2240+ overlap .
22442241
22452242` build_failed ` and ` build_finished ` are mutually exclusive, and both are
22462243reachable only after ` build_start ` has run. A project that cannot be * prepared*
@@ -2318,7 +2315,6 @@ than adding media handling to mcpp:
23182315
23192316``` toml
23202317[hooks ]
2321- during_build = { cmd = " mcpp-hooks-audioplayer bgm" , loop = true }
23222318build_finished = " mcpp-hooks-audioplayer niulai-mm"
23232319build_failed = " mcpp-hooks-audioplayer niulai-niulai"
23242320side_effect = false
@@ -2327,11 +2323,10 @@ side_effect = false
23272323deps = [" xim:mcpp-hooks-audioplayer@0.0.1" ]
23282324```
23292325
2330- Background music for the length of the build, and a different sound for how it
2331- ended. ` side_effect = false ` is written out rather than left to the default:
2332- it is the value this manifest wants on its own terms — a missing audio device
2333- should never fail a build — so it will still say so once the key has more than
2334- one accepted value.
2326+ A different sound for a successful or failed build. ` side_effect = false ` is
2327+ written out rather than left to the default: it is the value this manifest
2328+ wants on its own terms — a missing audio device should never fail a build — so
2329+ it will still say so once the key has more than one accepted value.
23352330
23362331## Appendix A. Schema Ownership Principle (admission criteria for new fields)
23372332
0 commit comments