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

@ -1,6 +1,5 @@
#!/usr/bin/env bash
# Cross-compile host `streamd` (+ `drm` compat copy) and on-device
# `proxy-android-arm64` into dist/release/.
# Cross-compile host `streamd` and on-device `proxy-android-arm64` into dist/release/.
# Usage:
# ./scripts/build-release.sh # VERSION=git describe
# ./scripts/build-release.sh v1.2.3
@ -48,14 +47,12 @@ echo "==> building host streamd ($VERSION) into $OUT"
build_host() {
local goos="$1" goarch="$2" ext="${3:-}"
local name="streamd-${goos}-${goarch}${ext}"
local compat="drm-${goos}-${goarch}${ext}"
echo " - $name (+ $compat)"
echo " - $name"
(
cd "$ROOT"
GOOS="$goos" GOARCH="$goarch" CGO_ENABLED=0 \
"$GO" -C apps/cli build -trimpath -ldflags="-s -w" -o "$OUT/$name" .
)
cp -f "$OUT/$name" "$OUT/$compat"
}
build_host windows amd64 .exe
@ -80,27 +77,15 @@ case "$(uname -s)" in
Linux)
arch="$(uname -m)"
case "$arch" in
x86_64)
cp -f "$OUT/streamd-linux-amd64" "$ROOT/bin/streamd"
cp -f "$OUT/streamd-linux-amd64" "$ROOT/bin/drm"
;;
aarch64)
cp -f "$OUT/streamd-linux-arm64" "$ROOT/bin/streamd"
cp -f "$OUT/streamd-linux-arm64" "$ROOT/bin/drm"
;;
x86_64) cp -f "$OUT/streamd-linux-amd64" "$ROOT/bin/streamd" ;;
aarch64) cp -f "$OUT/streamd-linux-arm64" "$ROOT/bin/streamd" ;;
esac
;;
Darwin)
arch="$(uname -m)"
case "$arch" in
x86_64)
cp -f "$OUT/streamd-darwin-amd64" "$ROOT/bin/streamd"
cp -f "$OUT/streamd-darwin-amd64" "$ROOT/bin/drm"
;;
arm64)
cp -f "$OUT/streamd-darwin-arm64" "$ROOT/bin/streamd"
cp -f "$OUT/streamd-darwin-arm64" "$ROOT/bin/drm"
;;
x86_64) cp -f "$OUT/streamd-darwin-amd64" "$ROOT/bin/streamd" ;;
arm64) cp -f "$OUT/streamd-darwin-arm64" "$ROOT/bin/streamd" ;;
esac
;;
esac
@ -108,9 +93,9 @@ esac
(
cd "$OUT"
if command -v sha256sum >/dev/null 2>&1; then
sha256sum streamd-* drm-* proxy-android-arm64 > SHA256SUMS.txt
sha256sum streamd-* proxy-android-arm64 > SHA256SUMS.txt
else
shasum -a 256 streamd-* drm-* proxy-android-arm64 > SHA256SUMS.txt
shasum -a 256 streamd-* proxy-android-arm64 > SHA256SUMS.txt
fi
)