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:
parent
da8e1123ec
commit
8fc7e4c0b8
57 changed files with 4031 additions and 257 deletions
|
|
@ -1,5 +1,4 @@
|
|||
# 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.ps1
|
||||
# .\scripts\build-release.ps1 -Version v1.2.3
|
||||
|
|
@ -43,8 +42,7 @@ Get-ChildItem $Out -ErrorAction SilentlyContinue | Where-Object { $_.Name -match
|
|||
|
||||
function Build-Host([string]$Goos, [string]$Goarch, [string]$Ext = "") {
|
||||
$name = "streamd-$Goos-$Goarch$Ext"
|
||||
$compat = "drm-$Goos-$Goarch$Ext"
|
||||
Write-Host " - $name (+ $compat)"
|
||||
Write-Host " - $name"
|
||||
$env:GOOS = $Goos
|
||||
$env:GOARCH = $Goarch
|
||||
$env:CGO_ENABLED = "0"
|
||||
|
|
@ -52,7 +50,6 @@ function Build-Host([string]$Goos, [string]$Goarch, [string]$Ext = "") {
|
|||
try {
|
||||
& $GoExe -C apps/cli build -trimpath -ldflags="-s -w" -o (Join-Path $Out $name) .
|
||||
if ($LASTEXITCODE -ne 0) { throw "go build failed for $name" }
|
||||
Copy-Item (Join-Path $Out $name) (Join-Path $Out $compat) -Force
|
||||
} finally {
|
||||
Pop-Location
|
||||
Remove-Item Env:GOOS -ErrorAction SilentlyContinue
|
||||
|
|
@ -95,9 +92,8 @@ Copy-Item (Join-Path $Out "proxy-android-arm64") (Join-Path $Root "bin\proxy-and
|
|||
Copy-Item (Join-Path $Out "proxy-android-arm64") (Join-Path $Root "apps\proxy\proxy-android-arm64") -Force
|
||||
try {
|
||||
Copy-Item (Join-Path $Out "streamd-windows-amd64.exe") (Join-Path $Root "bin\streamd.exe") -Force
|
||||
Copy-Item (Join-Path $Out "streamd-windows-amd64.exe") (Join-Path $Root "bin\drm.exe") -Force
|
||||
} catch {
|
||||
Write-Host "WARN: could not refresh bin\streamd.exe / bin\drm.exe (file in use): $($_.Exception.Message)"
|
||||
Write-Host "WARN: could not refresh bin\streamd.exe (file in use): $($_.Exception.Message)"
|
||||
}
|
||||
# Restore tiny embed stub so the 9MB MITM binary is not left in the source tree.
|
||||
$stub = Join-Path $Root "apps\pkg\bootstrap\embedded\bin\proxy-android-arm64"
|
||||
|
|
@ -107,7 +103,7 @@ Write-Host "==> checksums"
|
|||
$sumsPath = Join-Path $Out "SHA256SUMS.txt"
|
||||
$tmpSums = Join-Path $Out "SHA256SUMS.txt.tmp"
|
||||
$lines = Get-ChildItem $Out -File |
|
||||
Where-Object { $_.Name -match '^(streamd-|drm-|proxy-android)' } |
|
||||
Where-Object { $_.Name -match '^(streamd-|proxy-android)' } |
|
||||
Get-FileHash -Algorithm SHA256 |
|
||||
ForEach-Object { "{0} {1}" -f $_.Hash.ToLower(), (Split-Path $_.Path -Leaf) }
|
||||
[System.IO.File]::WriteAllLines($tmpSums, @($lines))
|
||||
|
|
@ -123,10 +119,8 @@ New-Item -ItemType Directory -Force -Path @(
|
|||
(Join-Path $win "outputs")
|
||||
) | Out-Null
|
||||
Copy-Item (Join-Path $Out "streamd-windows-amd64.exe") (Join-Path $win "bin\streamd.exe") -Force
|
||||
Copy-Item (Join-Path $Out "streamd-windows-amd64.exe") (Join-Path $win "bin\drm.exe") -Force
|
||||
Copy-Item (Join-Path $Out "proxy-android-arm64") (Join-Path $win "bin\proxy-android-arm64") -Force
|
||||
Copy-Item (Join-Path $Out "streamd-windows-amd64.exe") (Join-Path $win "streamd.exe") -Force
|
||||
Copy-Item (Join-Path $Out "streamd-windows-amd64.exe") (Join-Path $win "drm.exe") -Force
|
||||
Copy-Item (Join-Path $Out "proxy-android-arm64") (Join-Path $win "proxy-android-arm64") -Force
|
||||
Copy-Item (Join-Path $Root "apps\proxy\device\tproxy_iptables.sh") (Join-Path $win "apps\proxy\device\") -Force
|
||||
Copy-Item (Join-Path $Root "apps\pkg\go.mod") (Join-Path $win "apps\pkg\") -Force
|
||||
|
|
@ -136,7 +130,6 @@ Streamd — Windows portable
|
|||
|
||||
Scaffold (streamd.exe also creates this on first run if you only download the exe):
|
||||
bin\streamd.exe
|
||||
bin\drm.exe (identical compatibility copy)
|
||||
bin\proxy-android-arm64
|
||||
apps\proxy\device\tproxy_iptables.sh
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue