ci: build Linux release package
Some checks failed
Build Linux Release / build-linux (push) Has been cancelled

This commit is contained in:
luochen570
2026-05-29 22:51:24 +08:00
parent be4446c990
commit 8c9a92f2cb
4 changed files with 169 additions and 1 deletions

View File

@@ -97,6 +97,29 @@ cd /root/chengnan
build-linux/chengnan
```
### 生成发布包
如需生成可分发的 Linux x86_64 发布包,执行:
```bash
cd /root/chengnan
./scripts/package-linux-release.sh
```
脚本会先执行 Release 构建,再将程序、项目内 Qt/OpenCV 运行时库、Qt 插件和启动脚本打包到:
```text
dist-linux/chengnan-linux-x86_64.tar.gz
dist-linux/chengnan-linux-x86_64.tar.gz.sha256
```
解压后在有 X11 / Wayland 图形会话的 Linux 桌面环境中运行:
```bash
tar -xzf chengnan-linux-x86_64.tar.gz
./chengnan-linux-x86_64/run-chengnan.sh
```
### 分步构建
如果希望先准备依赖,再单独构建: