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:
1 parent
898763eb74
commit
8b9a8c420e
9 files changed
+401
-5
No files matched your search
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
# 安装后刷新桌面数据库与图标缓存,否则刚装完的应用菜单里可能看不到这个条目。
|
||||
# (本包的共享库在 /usr/lib/live-caption/,靠二进制的 RPATH 查找,不走 ldconfig,
|
||||
# 这里仍然调一下只是兜底。)
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
ldconfig
|
||||
|
||||
if command -v update-desktop-database >/dev/null 2>&1; then
|
||||
update-desktop-database -q /usr/share/applications || true
|
||||
fi
|
||||
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
|
||||
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user