Streamd v0.2.0: rename, modules panel, stable/beta channels
All checks were successful
release / build-and-upload (push) Successful in 7m5s
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:
parent
066e018749
commit
da8e1123ec
140 changed files with 2949 additions and 851 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
# Cross-compile host `drm` + on-device `proxy-android-arm64` into dist/release/.
|
||||
# Cross-compile host `streamd` (+ `drm` compat copy) and on-device
|
||||
# `proxy-android-arm64` into dist/release/.
|
||||
# Usage:
|
||||
# ./scripts/build-release.sh # VERSION=git describe
|
||||
# ./scripts/build-release.sh v1.2.3
|
||||
|
|
@ -41,18 +42,20 @@ echo "==> using $GO"
|
|||
"$GO" version
|
||||
|
||||
mkdir -p "$OUT"
|
||||
rm -f "$OUT"/drm-* "$OUT"/proxy-android-arm64 "$OUT"/SHA256SUMS.txt 2>/dev/null || true
|
||||
rm -f "$OUT"/streamd-* "$OUT"/drm-* "$OUT"/proxy-android-arm64 "$OUT"/SHA256SUMS.txt 2>/dev/null || true
|
||||
|
||||
echo "==> building host drm ($VERSION) into $OUT"
|
||||
echo "==> building host streamd ($VERSION) into $OUT"
|
||||
build_host() {
|
||||
local goos="$1" goarch="$2" ext="${3:-}"
|
||||
local name="drm-${goos}-${goarch}${ext}"
|
||||
echo " - $name"
|
||||
local name="streamd-${goos}-${goarch}${ext}"
|
||||
local compat="drm-${goos}-${goarch}${ext}"
|
||||
echo " - $name (+ $compat)"
|
||||
(
|
||||
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
|
||||
|
|
@ -77,15 +80,27 @@ case "$(uname -s)" in
|
|||
Linux)
|
||||
arch="$(uname -m)"
|
||||
case "$arch" in
|
||||
x86_64) cp -f "$OUT/drm-linux-amd64" "$ROOT/bin/drm" ;;
|
||||
aarch64) cp -f "$OUT/drm-linux-arm64" "$ROOT/bin/drm" ;;
|
||||
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"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
Darwin)
|
||||
arch="$(uname -m)"
|
||||
case "$arch" in
|
||||
x86_64) cp -f "$OUT/drm-darwin-amd64" "$ROOT/bin/drm" ;;
|
||||
arm64) cp -f "$OUT/drm-darwin-arm64" "$ROOT/bin/drm" ;;
|
||||
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"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
|
@ -93,9 +108,9 @@ esac
|
|||
(
|
||||
cd "$OUT"
|
||||
if command -v sha256sum >/dev/null 2>&1; then
|
||||
sha256sum drm-* proxy-android-arm64 > SHA256SUMS.txt
|
||||
sha256sum streamd-* drm-* proxy-android-arm64 > SHA256SUMS.txt
|
||||
else
|
||||
shasum -a 256 drm-* proxy-android-arm64 > SHA256SUMS.txt
|
||||
shasum -a 256 streamd-* drm-* proxy-android-arm64 > SHA256SUMS.txt
|
||||
fi
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue