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,4 +1,5 @@
|
|||
# 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.ps1
|
||||
# .\scripts\build-release.ps1 -Version v1.2.3
|
||||
|
|
@ -38,11 +39,12 @@ Write-Host "==> using $GoExe"
|
|||
& $GoExe version
|
||||
|
||||
New-Item -ItemType Directory -Force -Path $Out | Out-Null
|
||||
Get-ChildItem $Out -ErrorAction SilentlyContinue | Where-Object { $_.Name -match '^(drm-|proxy-android-arm64|SHA256SUMS)' } | Remove-Item -Force
|
||||
Get-ChildItem $Out -ErrorAction SilentlyContinue | Where-Object { $_.Name -match '^(streamd-|drm-|proxy-android-arm64|SHA256SUMS)' } | Remove-Item -Force
|
||||
|
||||
function Build-Host([string]$Goos, [string]$Goarch, [string]$Ext = "") {
|
||||
$name = "drm-$Goos-$Goarch$Ext"
|
||||
Write-Host " - $name"
|
||||
$name = "streamd-$Goos-$Goarch$Ext"
|
||||
$compat = "drm-$Goos-$Goarch$Ext"
|
||||
Write-Host " - $name (+ $compat)"
|
||||
$env:GOOS = $Goos
|
||||
$env:GOARCH = $Goarch
|
||||
$env:CGO_ENABLED = "0"
|
||||
|
|
@ -50,6 +52,7 @@ 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
|
||||
|
|
@ -58,7 +61,7 @@ function Build-Host([string]$Goos, [string]$Goarch, [string]$Ext = "") {
|
|||
}
|
||||
}
|
||||
|
||||
Write-Host "==> building on-device MITM (linux/arm64) first (embedded into drm.exe)"
|
||||
Write-Host "==> building on-device MITM (linux/arm64) first (embedded into streamd.exe)"
|
||||
$env:GOOS = "linux"
|
||||
$env:GOARCH = "arm64"
|
||||
$env:CGO_ENABLED = "0"
|
||||
|
|
@ -73,13 +76,13 @@ try {
|
|||
Remove-Item Env:CGO_ENABLED -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Stage into bootstrap embed so a lone drm.exe can extract bin/proxy-android-arm64.
|
||||
# Stage into bootstrap embed so a lone streamd.exe can extract bin/proxy-android-arm64.
|
||||
$embedProxy = Join-Path $Root "apps\pkg\bootstrap\embedded\bin\proxy-android-arm64"
|
||||
New-Item -ItemType Directory -Force -Path (Split-Path $embedProxy) | Out-Null
|
||||
Copy-Item (Join-Path $Out "proxy-android-arm64") $embedProxy -Force
|
||||
Write-Host " staged embed: $embedProxy"
|
||||
|
||||
Write-Host "==> building host drm ($Version) into $Out"
|
||||
Write-Host "==> building host streamd ($Version) into $Out"
|
||||
Build-Host windows amd64 ".exe"
|
||||
Build-Host windows arm64 ".exe"
|
||||
Build-Host linux amd64
|
||||
|
|
@ -91,9 +94,10 @@ New-Item -ItemType Directory -Force -Path (Join-Path $Root "bin"), (Join-Path $R
|
|||
Copy-Item (Join-Path $Out "proxy-android-arm64") (Join-Path $Root "bin\proxy-android-arm64") -Force
|
||||
Copy-Item (Join-Path $Out "proxy-android-arm64") (Join-Path $Root "apps\proxy\proxy-android-arm64") -Force
|
||||
try {
|
||||
Copy-Item (Join-Path $Out "drm-windows-amd64.exe") (Join-Path $Root "bin\drm.exe") -Force
|
||||
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\drm.exe (file in use): $($_.Exception.Message)"
|
||||
Write-Host "WARN: could not refresh bin\streamd.exe / bin\drm.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"
|
||||
|
|
@ -103,7 +107,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 '^(drm-|proxy-android)' } |
|
||||
Where-Object { $_.Name -match '^(streamd-|drm-|proxy-android)' } |
|
||||
Get-FileHash -Algorithm SHA256 |
|
||||
ForEach-Object { "{0} {1}" -f $_.Hash.ToLower(), (Split-Path $_.Path -Leaf) }
|
||||
[System.IO.File]::WriteAllLines($tmpSums, @($lines))
|
||||
|
|
@ -118,33 +122,30 @@ New-Item -ItemType Directory -Force -Path @(
|
|||
(Join-Path $win "apps\proxy\device"),
|
||||
(Join-Path $win "outputs")
|
||||
) | Out-Null
|
||||
Copy-Item (Join-Path $Out "drm-windows-amd64.exe") (Join-Path $win "bin\drm.exe") -Force
|
||||
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
|
||||
# Also beside bin\ for users who cd into bin
|
||||
Copy-Item (Join-Path $Out "drm-windows-amd64.exe") (Join-Path $win "drm.exe") -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
|
||||
Copy-Item (Join-Path $Root "README.md") (Join-Path $win "README.md") -Force -ErrorAction SilentlyContinue
|
||||
# Module YAMLs are NOT shipped in the exe and not required in this zip —
|
||||
# operators add apps/modules/<name>/module.yaml from the GitHub tree.
|
||||
@"
|
||||
Null DRM — Windows portable
|
||||
Streamd — Windows portable
|
||||
|
||||
Scaffold (drm.exe also creates this on first run if you only download the exe):
|
||||
bin\drm.exe
|
||||
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
|
||||
|
||||
Modules are NOT inside the exe. Add your own:
|
||||
apps\modules\bbc\module.yaml
|
||||
(copy from the GitHub repo apps/modules/bbc/module.yaml)
|
||||
Upload provider modules in the streamd Modules page, or add modules/<name>/ locally.
|
||||
|
||||
You do NOT need ``drm proxy build``.
|
||||
|
||||
bin\drm.exe proxy install-ca --reinject
|
||||
bin\streamd.exe serve --bind 127.0.0.1:8083
|
||||
bin\streamd.exe proxy install-ca --reinject
|
||||
adb shell am force-stop bbc.iplayer.android
|
||||
bin\drm.exe capture --app bbc --channel bbcone --wait 120
|
||||
bin\streamd.exe capture --app bbc --channel bbcone --wait 120
|
||||
|
||||
NordVPN UK on the phone. First install-ca creates data\proxy-ca.* (private CA).
|
||||
"@ | Set-Content -Encoding utf8 (Join-Path $win "README.txt")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue