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
|
|
@ -55,26 +55,38 @@ if (-not $ReleaseUrl) {
|
|||
else { $ReleaseUrl = "$RepoUrl/releases/tag/$Tag" }
|
||||
}
|
||||
|
||||
$Channel = $env:RELEASE_CHANNEL
|
||||
if (-not $Channel) {
|
||||
if ($Tag -match '^v\d+\.\d+\.\d+$') { $Channel = "stable" }
|
||||
elseif ($Tag -match '^v\d+\.\d+\.\d+-') { $Channel = "beta" }
|
||||
}
|
||||
|
||||
if (-not $Title) {
|
||||
if ($env:RELEASE_TITLE) { $Title = $env:RELEASE_TITLE }
|
||||
else { $Title = "Null DRM $Tag" }
|
||||
elseif ($Channel -eq "beta") { $Title = "Streamd $Tag (beta)" }
|
||||
else { $Title = "Streamd $Tag" }
|
||||
}
|
||||
|
||||
function New-TelegramBody {
|
||||
param([string]$Kind, [string]$Title, [string]$Tag, [string]$ReleaseUrl)
|
||||
param([string]$Kind, [string]$Title, [string]$Tag, [string]$ReleaseUrl, [string]$RepoUrl, [string]$Channel)
|
||||
$code = { param($t) "<code>$t</code>" }
|
||||
$nl = "`n"
|
||||
if ($Kind -eq "modules") {
|
||||
return (
|
||||
"<b>$Title</b>" + $nl +
|
||||
"Provider module zips: $( & $code 'bbc.zip' ), $( & $code 'rte.zip' ), $( & $code 'tg4.zip' ), $( & $code 'itv.zip' ), $( & $code 'c4.zip' ), $( & $code 'my5.zip' )" + $nl + $nl +
|
||||
"Unpack each into $( & $code 'modules/<name>/' ) and edit $( & $code 'module.yaml' ) for secrets." + $nl + $nl +
|
||||
"Upload in the streamd Modules page, or unpack into $( & $code 'modules/<name>/' ) and edit $( & $code 'module.yaml' )." + $nl + $nl +
|
||||
"<a href=`"$ReleaseUrl`">Download $Tag</a>"
|
||||
)
|
||||
}
|
||||
$channelLine = ""
|
||||
if ($Channel) {
|
||||
$channelLine = $nl + "Rolling channel: <a href=`"$RepoUrl/releases/tag/$Channel`">$Channel</a> -> $( & $code "$RepoUrl/releases/download/$Channel/streamd-..." )"
|
||||
}
|
||||
return (
|
||||
"<b>$Title</b>" + $nl +
|
||||
"Host CLI ($( & $code 'drm' )) + on-device MITM ($( & $code 'proxy-android-arm64' ))." + $nl + $nl +
|
||||
"Host CLI ($( & $code 'streamd' ); $( & $code 'drm' ) compat copy) + on-device MITM ($( & $code 'proxy-android-arm64' ))." +
|
||||
$channelLine + $nl + $nl +
|
||||
"<a href=`"$ReleaseUrl`">Download $Tag</a>"
|
||||
)
|
||||
}
|
||||
|
|
@ -83,7 +95,7 @@ if (-not $Body) {
|
|||
if ($env:RELEASE_BODY) {
|
||||
$Body = $env:RELEASE_BODY
|
||||
} else {
|
||||
$Body = New-TelegramBody -Kind $Kind -Title $Title -Tag $Tag -ReleaseUrl $ReleaseUrl
|
||||
$Body = New-TelegramBody -Kind $Kind -Title $Title -Tag $Tag -ReleaseUrl $ReleaseUrl -RepoUrl $RepoUrl -Channel $Channel
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue