streamd: serve start/stop/update, streamd.yaml, egress, module panel fixes

- Add streamd serve start|stop|restart|status|update with auto-written streamd.yaml
- Panel modules: STREAMD_MODULES_DIR for describe, YAML channel fallback, textarea value fix
- Per-stream WireGuard/SOCKS egress profiles + Settings UI
- Drop drm-* from release builds; track streamd-bg.sh / streamd-update.sh wrappers
- Docs: streamd-server-setup lifecycle and update flow
This commit is contained in:
404errordeveloper 2026-10-10 18:05:51 +02:00
parent da8e1123ec
commit 8fc7e4c0b8
57 changed files with 4031 additions and 257 deletions

View file

@ -29,6 +29,27 @@ func makeZip(t *testing.T, files map[string][]byte) []byte {
return buf.Bytes()
}
func TestInstallZipInfersNameNotArchDir(t *testing.T) {
// Flat release zips list .bin/darwin-arm64/ before the binary; that arch
// folder must not become the module name.
root := t.TempDir()
s := New(root)
zipBytes := makeZip(t, map[string][]byte{
"module.yaml": []byte("package: air.RTE\nchannels:\n rteone: {label: One}\n"),
".bin/": nil, // directory markers via path only
".bin/darwin-arm64/rte": []byte("mac-bin"),
".bin/linux-amd64/rte": []byte("linux-bin"),
".bin/windows-amd64/rte.exe": []byte("win-bin"),
})
info, err := s.InstallZip(zipBytes, "")
if err != nil {
t.Fatalf("InstallZip: %v", err)
}
if info.Name != "rte" {
t.Fatalf("inferred name=%q want rte", info.Name)
}
}
func TestInstallZipFlatAndYAMLOnly(t *testing.T) {
root := t.TempDir()
s := New(root)