chore(pack): add CPack configuration to build a deb package

Add install rules and CPack settings so cpack produces an installable
.deb. Dependencies are derived with dpkg-shlibdeps, so they follow the
binaries. The sherpa-onnx runtime the streaming backend needs is bundled
because no distro package provides it. The fetch-models script now also
locates its registry when installed system-wide.

增加 CPack 配置,可直接用 cpack 打出 deb:安装规则含桌面入口、应用图标、
模型注册表与下载脚本、用户文档;依赖由 dpkg-shlibdeps 自动推导;流式后端
需要的 sherpa-onnx 运行时(发行版无对应包)随包携带;fetch-models 脚本
装到系统后也能找到注册表。
This commit is contained in:
blumia committed 2026-10-13 11:53:07 +08:00
1 parent 898763eb74
commit 8b9a8c420e
9 files changed
+401 -5

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
live-caption 图标。
刻意不用文字(字形)而画成「字幕面板」:SVG 里的 <text> 依赖渲染环境有对应字体,
而这条图标要跟着主题一起渲染。所以画成和悬浮窗一样的样子 ——
深色圆角面板 + 一行已稳定文本(白)+ 一行不稳定尾部(灰)。
-->
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
<defs>
<clipPath id="panel">
<rect x="2" y="11" width="60" height="42" rx="10"/>
</clipPath>
</defs>
<!-- 面板 -->
<rect x="2" y="11" width="60" height="42" rx="10" fill="#1b1b1b"/>
<rect x="2" y="11" width="60" height="42" rx="10" fill="none"
stroke="#3a3a3a" stroke-width="1.5"/>
<!-- 已稳定文本 -->
<g clip-path="url(#panel)">
<rect x="11" y="24" width="42" height="6" rx="3" fill="#f5f5f5"/>
<!-- 不稳定尾部 -->
<rect x="11" y="35" width="26" height="6" rx="3" fill="#8d8d8d"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1016 B