aisop/LINUX.md

29 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# SopHelper Linux 部署
当前入口是统一的 **Avalonia 跨平台版**,详见 [AVALONIA.md](AVALONIA.md)。
Windows 和 Linux 都编译 `src/SopHelper.Avalonia`;之前的 `SopHelper.Linux` 简化验证版不再作为部署入口。
## 本地生成 Linux 包
```powershell
dotnet publish src/SopHelper.Avalonia -c Release -r linux-x64 --self-contained true -o artifacts/avalonia/linux-x64
```
在目标机的图形会话中执行 `./SopHelper.Avalonia`。训练功能需要为 Linux 单独安装 Python 运行时:
```bash
PYTHON=python3.12 bash tools/Setup-Python.sh /absolute/application/directory --sam2
```
相机接口、模型和 YAML 配方逻辑与 Windows 来自同一套源码。UVC 使用 V4L2;
海康需要匹配的 Linux MVS,并根据 SDK 安装位置设置 `MVS_LIB_DIR`、`LD_LIBRARY_PATH`。
Linux 的实际海康采集与标注训练尚待真机验收。
## 后续部署
`tools/Deploy-Linux.ps1` 已切换为统一 Avalonia 工程;仅在明确要求部署时执行。
它在新版本目录执行 `--check-runtime` 后更新启动入口,保留 `configs`、`models`、`workspace`。
图形环境需要 X11/XWayland、fontconfig 和中文字体;发布包自带 .NET 运行时。
2026-11-08 本轮只在本地建立、构建和验证统一版,没有更新远端正在运行的旧验证版。