v0.1.1: external modules, publish YAML, proxy reset, binary-first README
- Host discovers/builds modules under modules/ (bbc, rte, tg4) - module-publish.yaml tracked; local module.yaml gitignored - drm --modules-dir / DRM_MODULES_DIR - drm proxy reset; Magisk reinject reliability - modules-v* Forgejo release workflow + build scripts - BBC full Explore channel map including S4C - README quickstart based on release binaries
This commit is contained in:
parent
1d36961a7c
commit
f9c28be3f1
52 changed files with 2915 additions and 636 deletions
|
|
@ -132,6 +132,12 @@ func sameFile(a, b string) bool {
|
|||
|
||||
// EnsureAndLog runs Ensure and prints what was created (if anything).
|
||||
func EnsureAndLog() error {
|
||||
return EnsureAndLogFor("")
|
||||
}
|
||||
|
||||
// EnsureAndLogFor is EnsureAndLog with an optional subcommand hint so proxy-only
|
||||
// runs do not warn about missing modules/.
|
||||
func EnsureAndLogFor(cmd string) error {
|
||||
root, err := InstallRoot()
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
@ -150,10 +156,13 @@ func EnsureAndLog() error {
|
|||
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")
|
||||
}
|
||||
// Module configs are never shipped inside drm.exe — operator must add them.
|
||||
modBBC := filepath.Join(root, "apps", "modules", "bbc", "module.yaml")
|
||||
if _, err := os.Stat(modBBC); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "[!] no apps/modules/*/module.yaml yet — create e.g. apps/modules/bbc/module.yaml (not bundled in the exe)\n")
|
||||
// Providers live under modules/; only warn when the command needs them.
|
||||
needsModules := cmd == "" || cmd == "modules" || cmd == "capture" || cmd == "catalog" || cmd == "agent" || cmd == "serve"
|
||||
if needsModules {
|
||||
modBBC := filepath.Join(root, "modules", "bbc", "module.yaml")
|
||||
if _, err := os.Stat(modBBC); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "[!] no modules/*/ yet — add e.g. modules/bbc/ (Go source + module.yaml); see modules/README.md\n")
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue