Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>11.0.2</Version>
<Version>11.0.3</Version>
<OutputType>Exe</OutputType>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion tools/BootstrapBlazor.MediaMtx.Cli/MediaMtxInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static async Task DeployAsync(string? rid, string? output, bool download,
}

var cache = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "BootstrapBlazor", "mediamtx");
var tag = "v1.21.4";
var tag = "v1.22.0";
var toolRoot = Path.Combine(Path.GetFullPath(cache), tag);
Directory.CreateDirectory(toolRoot);
await using var cacheLock = await AcquireCacheLockAsync(Path.Combine(toolRoot, $"{rid}.lock"), cancellationToken);
Expand Down
4 changes: 2 additions & 2 deletions tools/BootstrapBlazor.MediaMtx.Cli/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ bb-mediamtx --help
"isRoot": true,
"tools": {
"bootstrapblazor.mediamtx.cli": {
"version": "11.0.2",
"version": "11.0.3",
"commands": ["bb-mediamtx"]
}
}
Expand Down Expand Up @@ -94,7 +94,7 @@ bb-mediamtx --copy --rid linux-arm64 --output .\publish --force

## 缓存和故障排查

CLI 固定使用 MediaMTX `1.21.4`,缓存位于本机应用数据目录下的 `BootstrapBlazor\mediamtx\v1.21.4\<RID>`,构建和发布共用。下载通过 GitHub 发布 API 获取资源,校验 SHA-256 后只提取可执行文件和许可证,不使用压缩包中的 `mediamtx.yml`。有效缓存会校验后复用;下载进度在可获取文件大小时显示百分比,否则显示已下载字节数。
CLI 固定使用 MediaMTX `1.22.0`,缓存位于本机应用数据目录下的 `BootstrapBlazor\mediamtx\v1.22.0\<RID>`,构建和发布共用。下载通过 GitHub 发布 API 获取资源,校验 SHA-256 后只提取可执行文件和许可证,不使用压缩包中的 `mediamtx.yml`。有效缓存会校验后复用;下载进度在可获取文件大小时显示百分比,否则显示已下载字节数。

`--download --rid all` 逐个平台处理,某个平台失败会输出警告并继续;其他模式处理指定或本机平台。参数、下载、校验、复制失败或取消时 CLI 输出警告,但仍以成功状态退出,以免阻断宿主构建或发布。因此不能只依据退出码判断是否部署成功,应检查警告及目标文件。

Expand Down
Loading