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,4 +1,4 @@
// Package bootstrap materialises a GitHub-like install tree next to drm.exe
// Package bootstrap materialises a GitHub-like install tree next to streamd
// so a single downloaded binary can create apps/, bin/, outputs/, etc. on first run.
package bootstrap
@ -17,7 +17,7 @@ var embedded embed.FS
const minProxyBytes = 100_000 // stub ELF is tiny; real proxy-android-arm64 is ~9MB
// InstallRoot is the directory that should contain apps/, bin/, outputs/.
// If drm.exe lives in …/bin/, the parent is the root; otherwise the exe directory.
// If streamd lives in …/bin/, the parent is the root; otherwise the exe directory.
func InstallRoot() (string, error) {
exe, err := os.Executable()
if err != nil {
@ -91,27 +91,34 @@ func Ensure(root string) (created []string, err error) {
return created, err
}
// If drm is not already under bin/, copy/link a drm.exe there for 1:1 layout.
if err := ensureBinDrm(root); err != nil {
// If streamd is not already under bin/, copy it there for 1:1 layout.
// Also keep a drm.exe compat copy for one release when missing.
if err := ensureBinHost(root); err != nil {
return created, err
}
return created, nil
}
func ensureBinDrm(root string) error {
func ensureBinHost(root string) error {
exe, err := os.Executable()
if err != nil {
return nil
}
exe, _ = filepath.EvalSymlinks(exe)
dest := filepath.Join(root, "bin", "drm.exe")
if sameFile(exe, dest) {
if err := copyExeIfMissing(exe, filepath.Join(root, "bin", "streamd.exe")); err != nil {
return err
}
return copyExeIfMissing(exe, filepath.Join(root, "bin", "drm.exe"))
}
func copyExeIfMissing(src, dest string) error {
if sameFile(src, dest) {
return nil
}
if st, err := os.Stat(dest); err == nil && !st.IsDir() {
return nil
}
data, err := os.ReadFile(exe)
data, err := os.ReadFile(src)
if err != nil {
return err
}
@ -154,7 +161,7 @@ func EnsureAndLogFor(cmd string) error {
}
proxy := filepath.Join(root, "bin", "proxy-android-arm64")
if st, err := os.Stat(proxy); err != nil || st.Size() < minProxyBytes {
fmt.Fprintf(os.Stderr, "[!] missing bin/proxy-android-arm64 — place it next to drm or use a release build that embeds it\n")
fmt.Fprintf(os.Stderr, "[!] missing bin/proxy-android-arm64 — place it next to streamd or use a release build that embeds it\n")
}
// Providers live under modules/; only warn when the command needs them.
needsModules := cmd == "" || cmd == "modules" || cmd == "capture" || cmd == "catalog" || cmd == "agent" || cmd == "serve"

View file

@ -1,14 +1,14 @@
# Null DRM
# Streamd
Host binary **`drm`** + providers under **`modules/`**.
Host binary **`streamd`** + providers under **`modules/`**.
## Quick start
1. Download `drm` (`v*` release) and module zips (`modules-v*` release).
1. Download `streamd` (`v*` release) and module zips (`modules-v*` release).
2. Unzip providers into `modules/<name>/` and edit `module.yaml` (secrets only).
3. `drm proxy install-ca --reinject`
4. `drm capture --app bbc --channel bbcone --wait 120`
5. `drm proxy reset` when finished.
3. `streamd proxy install-ca --reinject`
4. `streamd capture --app bbc --channel bbcone --wait 120`
5. `streamd proxy reset` when finished.
```text
drm modules
@ -17,6 +17,6 @@ drm catalog --app NAME --channel ID [--keys] [--json]
drm proxy install-ca --reinject | reset | transparent --package PKG
```
`--modules-dir DIR` or `$DRM_MODULES_DIR` selects another modules folder.
`--modules-dir DIR` or `$STREAMD_MODULES_DIR` selects another modules folder.
Full docs: https://git.nulldrm.com/nulldrm/Null-DRM-Official

View file

@ -1,4 +1,4 @@
module drmdecryption
module streamd
go 1.25.0

View file

@ -1,6 +1,6 @@
# External modules
Each subdirectory is a provider the `drm` host discovers, builds, and runs.
Each subdirectory is a provider the `streamd` host discovers, builds, and runs.
```
modules/

View file

@ -1,4 +1,4 @@
module drmdecryption
module streamd
go 1.25.0