Streamd v0.2.0: rename, modules panel, stable/beta channels
All checks were successful
release / build-and-upload (push) Successful in 7m5s

- Rename product/host binary to streamd (drm compat copy still shipped)
- Go module path streamd; STREAMD_* env aliases; agent UA streamd-agent
- Panel Modules store + agent pull sync (modstore / modsync)
- Rolling stable + beta download tags; README/docs channel curl blocks
- Release notes in docs/releases/v0.2.0.md attached by Forgejo Actions
This commit is contained in:
404errordeveloper 2026-10-10 15:58:26 +02:00
parent 066e018749
commit da8e1123ec
140 changed files with 2949 additions and 851 deletions

View file

@ -1,8 +1,8 @@
# Writing an app module
A module teaches the host how to drive one streaming app. Provider code lives
under `modules/<name>/` on disk. The host (`drm`) discovers it, builds it, and
runs it — it is **not** compiled into `drm.exe`. Shared library helpers may live
under `modules/<name>/` on disk. The host (`streamd`) discovers it, builds it, and
runs it — it is **not** compiled into `streamd`. Shared library helpers may live
under `apps/modules/<name>/` and be imported by the external CLI via `replace`.
Work through [capture.md](capture.md) first — you need the app's package id,
@ -13,9 +13,9 @@ license URL, manifest host and UI selectors before you can write any of this.
```text
modules/myapp/
main.go CLI: describe | launch | autoplay | catalog
go.mod replace drmdecryption => ../../apps/pkg
go.mod replace streamd => ../../apps/pkg
module.yaml your values (bbc published; others often gitignored)
.bin/myapp.exe built on demand by drm
.bin/myapp.exe built on demand by streamd
apps/modules/myapp/ (optional shared library used by the CLI)
config.go Config struct + defaults
@ -35,8 +35,8 @@ Embed `provider.Common` for the fields every module has, then add your own.
package myapp
import (
"drmdecryption/modcfg"
"drmdecryption/modules/provider"
"streamd/modcfg"
"streamd/modules/provider"
)
const Name = "myapp"
@ -103,7 +103,7 @@ func loadConfig() (Config, modcfg.Result, error) {
`modcfg.Override` applies **flag → environment (`MYAPP_API_BASE`) → file**. A
missing `module.yaml` is not an error: the module must still construct so
`drm modules` can report it as unconfigured.
`streamd modules` can report it as unconfigured.
## 2. The App type
@ -253,7 +253,7 @@ phone; put real values in `module.yaml` if your app differs.
## 4. Optional: catalog
Implement `app.Catalog` and `drm catalog --app myapp` starts working.
Implement `app.Catalog` and `streamd catalog --app myapp` starts working.
```go
func (a *App) Resolve(channel string) (session.Stream, error) {
@ -328,8 +328,8 @@ app and stream names.
No host rebuild. Put the CLI + `module.yaml` under `modules/myapp/`, then:
```bash
./bin/drm modules
./bin/drm capture --app myapp --channel …
./bin/streamd modules
./bin/streamd capture --app myapp --channel …
```
The host builds `modules/myapp/.bin/myapp` on first use (Go must be on PATH).
@ -380,4 +380,4 @@ go -C apps/modules test -tags live ./myapp/ -v
- [ ] `CaptureHints` asks only for fields the app really produces
- [ ] `KeyMode` is correct (`raw` for binary challenges, `modulardrm` for JSON)
- [ ] Added to `all/all.go`
- [ ] `drm modules` lists it with the right channel count
- [ ] `streamd modules` lists it with the right channel count