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"