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,6 +1,6 @@
# Multi-platform releases
Host CLI (`drm`) and the on-device MITM (`proxy-android-arm64`) are plain Go
Host CLI (`streamd`) and the on-device MITM (`proxy-android-arm64`) are plain Go
binaries (`CGO_ENABLED=0`), so one machine can cross-compile every target.
## Local build
@ -19,59 +19,79 @@ Writes `dist/release/`:
| File | Use |
|---|---|
| `drm-windows-amd64.exe` | Windows x86_64 host |
| `drm-windows-arm64.exe` | Windows ARM64 host |
| `drm-linux-amd64` | Linux x86_64 host |
| `drm-linux-arm64` | Linux ARM64 host |
| `drm-darwin-amd64` | macOS Intel |
| `drm-darwin-arm64` | macOS Apple Silicon |
| `proxy-android-arm64` | Phone MITM (`drm proxy push` / transparent) |
| `streamd-windows-amd64.exe` | Windows x86_64 host |
| `streamd-windows-arm64.exe` | Windows ARM64 host |
| `streamd-linux-amd64` | Linux x86_64 host |
| `streamd-linux-arm64` | Linux ARM64 host |
| `streamd-darwin-amd64` | macOS Intel |
| `streamd-darwin-arm64` | macOS Apple Silicon |
| `proxy-android-arm64` | Phone MITM (`streamd proxy push` / transparent) |
| `SHA256SUMS.txt` | SHA-256 of the above |
Releases **do not** ship a MITM private key. On each machine, the first
`drm proxy install-ca --reinject` creates `data/proxy-ca.crt` + `data/proxy-ca.key`
`streamd proxy install-ca --reinject` creates `data/proxy-ca.crt` + `data/proxy-ca.key`
(unique per install). Users must not copy `data/` between PCs if they want
separate CAs.
**Single-exe bootstrap:** drop `drm-windows-amd64.exe` anywhere and run it. On
**Single-exe bootstrap:** drop `streamd-windows-amd64.exe` anywhere and run it. On
first command it creates scaffold folders next to itself (`apps/pkg`, `bin/`,
`outputs/`, …) and extracts `proxy-android-arm64`. It does **not** ship
`apps/modules/*/module.yaml` — those stay out of the exe.
```text
./
drm.exe
streamd.exe # drm.exe also shipped as a one-release compat copy
README.md
apps/pkg/go.mod
apps/proxy/device/tproxy_iptables.sh
apps/modules/<name>/module.yaml ← YOU add these (copy from GitHub / write your own)
bin/drm.exe
bin/streamd.exe
bin/proxy-android-arm64
configs/
outputs/
data/ ← after first install-ca (private CA)
```
Existing files are never overwritten. `drm proxy build` is for full source
Existing files are never overwritten. `streamd proxy build` is for full source
checkouts only.
## Forgejo (git.nulldrm.com)
Push a version tag; Actions builds and attaches the same files to the release:
### Stable vs beta
| Tag you push | Release | Rolling channel | README download |
|---|---|---|---|
| `v1.2.3` | Normal release | Retargets **`stable`** | `…/releases/download/stable/<asset>` |
| `v1.2.3-beta.1` (also `-rc.N`, `-alpha.N`) | **Pre-release** | Retargets **`beta`** | `…/releases/download/beta/<asset>` |
```bash
# Stable
git tag v1.2.3
git push origin v1.2.3
# Beta
git tag v1.2.3-beta.1
git push origin v1.2.3-beta.1
```
CI uploads assets to the version tag **and** overrides the matching channel tag
(`stable` or `beta`) so curl/PowerShell links in the README never need a version bump.
Optional per-tag notes: commit `docs/releases/<tag>.md` (e.g. `docs/releases/v0.2.0.md`).
The release workflow attaches that file as the Forgejo release body when present.
Do **not** use Forgejo’s generic `/releases/latest` for host binaries — that page
follows the newest release of any kind (including `modules-v*`). Prefer `stable` /
`beta` or a concrete `v*` tag.
Workflow: [`.forgejo/workflows/release.yml`](../.forgejo/workflows/release.yml).
Runner setup: [deploy/forgejo/README.md](../deploy/forgejo/README.md) § Actions / releases.
## Manual one-off cross-compile
```bash
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go -C apps/cli build -o bin/drm.exe .
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go -C apps/cli build -o bin/drm-darwin-arm64 .
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go -C apps/cli build -o bin/drm-linux-amd64 .
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go -C apps/cli build -o bin/streamd.exe .
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go -C apps/cli build -o bin/streamd-darwin-arm64 .
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go -C apps/cli build -o bin/streamd-linux-amd64 .
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go -C apps/proxy/device build -o bin/proxy-android-arm64 .
```