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,10 +1,10 @@
# pkg — shared Go libraries
Imported by `apps/capture`, `apps/agent`, `apps/streamd`, `apps/proxy`, `apps/cli`
and `apps/modules` as module `drmdecryption` via:
and `apps/modules` as module `streamd` via:
```go
replace drmdecryption => ../pkg
replace streamd => ../pkg
```
## Packages
@ -34,4 +34,4 @@ provider values live in that module's gitignored `module.yaml`.
go -C apps/pkg test ./...
```
No binary of its own — everything ships in `bin/drm`, built from `apps/cli`.
No binary of its own — everything ships in `bin/streamd`, built from `apps/cli`.

View file

@ -6,10 +6,10 @@ import (
"sort"
"sync"
"drmdecryption/adb"
"drmdecryption/capture"
"drmdecryption/mpd"
"drmdecryption/session"
"streamd/adb"
"streamd/capture"
"streamd/mpd"
"streamd/session"
)
// Channel is a named live target inside an app (e.g. rteone).

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

View file

@ -9,7 +9,7 @@ import (
"strings"
"time"
"drmdecryption/adb"
"streamd/adb"
)
// Hints tell the waiter which fields / log tags mean a capture is complete.

View file

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

View file

@ -15,8 +15,8 @@ import (
"path/filepath"
"strings"
"drmdecryption/modhost"
"drmdecryption/repo"
"streamd/modhost"
"streamd/repo"
"gopkg.in/yaml.v3"
)

View file

@ -13,7 +13,7 @@ type Module struct {
Dir string // absolute path to modules/<name>
}
// ModulesDir returns the modules directory (honours --modules-dir / DRM_MODULES_DIR).
// ModulesDir returns the modules directory (honours --modules-dir / STREAMD_MODULES_DIR / DRM_MODULES_DIR).
func ModulesDir(root string) string {
return EffectiveModulesDir(root)
}

View file

@ -1,8 +1,8 @@
// Package modhost discovers, builds, and runs external provider modules that
// live under modules/<name>/ (Go source + module.yaml), outside drm.exe.
// live under modules/<name>/ (Go source + module.yaml), outside streamd.
package modhost
import "drmdecryption/capture"
import "streamd/capture"
// ProtocolVersion is bumped when describe/launch/autoplay CLI contract changes.
const ProtocolVersion = 1

View file

@ -6,11 +6,11 @@ import (
"path/filepath"
"strings"
"drmdecryption/adb"
"drmdecryption/app"
"drmdecryption/capture"
"drmdecryption/mpd"
"drmdecryption/session"
"streamd/adb"
"streamd/app"
"streamd/capture"
"streamd/mpd"
"streamd/session"
)
// RemoteApp implements app.App by calling an external module binary.

View file

@ -5,7 +5,7 @@ import (
"path/filepath"
"sync"
"drmdecryption/repo"
"streamd/repo"
)
var (
@ -13,7 +13,7 @@ var (
modulesDirOV string // absolute path override for the modules directory
)
// SetModulesDir overrides where providers are discovered (drm --modules-dir).
// SetModulesDir overrides where providers are discovered (streamd --modules-dir).
// Empty clears the override. Relative paths are resolved against the process cwd.
func SetModulesDir(dir string) error {
rootMu.Lock()
@ -38,7 +38,7 @@ func ModulesDirOverride() string {
}
// EffectiveModulesDir is the directory that Discover/Open scan.
// Prefer --modules-dir / DRM_MODULES_DIR; else <root>/modules.
// Prefer --modules-dir / STREAMD_MODULES_DIR / DRM_MODULES_DIR; else <root>/modules.
func EffectiveModulesDir(root string) string {
if ov := ModulesDirOverride(); ov != "" {
return ov
@ -49,12 +49,16 @@ func EffectiveModulesDir(root string) string {
return filepath.Join(root, "modules")
}
// ApplyEnvModulesDir sets the override from DRM_MODULES_DIR when no flag was set.
// ApplyEnvModulesDir sets the override from STREAMD_MODULES_DIR (preferred) or
// DRM_MODULES_DIR when no flag was set.
func ApplyEnvModulesDir() error {
if ModulesDirOverride() != "" {
return nil
}
v := os.Getenv("DRM_MODULES_DIR")
v := os.Getenv("STREAMD_MODULES_DIR")
if v == "" {
v = os.Getenv("DRM_MODULES_DIR")
}
if v == "" {
return nil
}

View file

@ -12,13 +12,13 @@ import (
"strings"
"time"
"drmdecryption/adb"
"drmdecryption/app"
"drmdecryption/capture"
"drmdecryption/proxy"
"drmdecryption/repo"
"drmdecryption/session"
"drmdecryption/wvkey"
"streamd/adb"
"streamd/app"
"streamd/capture"
"streamd/proxy"
"streamd/repo"
"streamd/session"
"streamd/wvkey"
)
// DefaultCAHash is the subject hash of the bundled MITM CA, used when an app

View file

@ -6,15 +6,15 @@ import (
"os"
"path/filepath"
"drmdecryption/adb"
"drmdecryption/repo"
"streamd/adb"
"streamd/repo"
)
//go:embed embedded/tproxy_iptables.sh
var embeddedTProxyScript []byte
// ensureTProxyScript pushes the iptables helper to the phone.
// Prefers the source-tree copy; falls back to the copy embedded in drm.exe
// Prefers the source-tree copy; falls back to the copy embedded in streamd
// so a portable release zip does not need apps/proxy/device/.
func ensureTProxyScript(c *adb.Client) error {
candidates := []string{

View file

@ -17,8 +17,8 @@ import (
"strings"
"time"
"drmdecryption/adb"
"drmdecryption/repo"
"streamd/adb"
"streamd/repo"
)
const (
@ -225,7 +225,7 @@ func PushAndStart(c *adb.Client, localBin string, extraArgs ...string) error {
}
// FindLocalBin returns the on-device MITM binary.
// Search order: next to this drm.exe (release zip layout), then under the repo.
// Search order: next to this streamd binary (release zip layout), then under the repo.
func FindLocalBin(root string) string {
if root == "" {
root = repo.Root()
@ -322,11 +322,11 @@ func generateMITMCA(certPath, keyPath string) error {
return err
}
// Unique CN so Android subject_hash_old differs per install (filename HASH.0).
cn := fmt.Sprintf("Null DRM Capture CA %x", serial.Bytes()[:8])
cn := fmt.Sprintf("Streamd Capture CA %x", serial.Bytes()[:8])
tmpl := &x509.Certificate{
SerialNumber: serial,
Subject: pkix.Name{
Organization: []string{"Null DRM MITM CA"},
Organization: []string{"Streamd MITM CA"},
CommonName: cn,
},
NotBefore: time.Now().Add(-time.Hour),

View file

@ -11,7 +11,7 @@ import (
//
// Search order:
// 1. Walk up from the current working directory
// 2. Walk up from drm.exe (if the exe lives in bin/, start at the parent)
// 2. Walk up from streamd (if the exe lives in bin/, start at the parent)
func Root() string {
if root := findRoot(wd()); root != "" {
return root

View file

@ -10,7 +10,7 @@ import (
"strings"
"time"
"drmdecryption/adb"
"streamd/adb"
)
// Pick selects among several matching nodes.