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

@ -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
}