fix: 版本变量改 PACKAGE_VERSION、CI 触发 tags['*']、修正静态措辞
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
- 🏗️ **多架构支持** - 原生支持 AMD64 和 ARM64 架构
|
||||
- 📦 **多种安装方式** - 提供 Debian 包和通用二进制包
|
||||
- 🐧 **多发行版兼容** - 支持 Ubuntu 和 Debian
|
||||
- 🔗 **纯静态链接** - 无需依赖,可在任意 Linux 系统运行
|
||||
- 🔗 **依赖精简** - 第三方库(boost/OpenSSL/ZMQ 等)全部静态链入,运行时仅依赖系统 glibc(libc6 ≥ 2.31)
|
||||
- 🔒 **隐私优先** - 基于 Monero 的隐私保护技术
|
||||
- 🔄 **自动更新** - 通过 Debian 仓库轻松安装和更新
|
||||
|
||||
@@ -144,7 +144,7 @@ sudo systemctl restart mond.service
|
||||
|
||||
### Docker 构建(推荐)
|
||||
|
||||
本项目使用 Docker 和官方 depends 系统构建,确保纯静态链接。
|
||||
本项目使用 Docker 和官方 depends 系统构建,将 boost/OpenSSL/ZMQ 等第三方依赖全部静态链入(运行时仅依赖系统 glibc)。
|
||||
|
||||
#### 构建多架构二进制文件
|
||||
|
||||
@@ -169,15 +169,12 @@ docker buildx build --platform linux/arm64 \
|
||||
--output type=local,dest=./output .
|
||||
```
|
||||
|
||||
#### 验证静态链接
|
||||
#### 验证依赖
|
||||
|
||||
```bash
|
||||
# 检查二进制文件是否为纯静态链接
|
||||
# 运行时动态依赖应只有 glibc 组件(libc/libm/libpthread/ld-linux),无第三方库
|
||||
ldd output/linux_amd64/mond
|
||||
# 预期输出: "not a dynamic executable"
|
||||
|
||||
file output/linux_amd64/mond
|
||||
# 预期输出: "statically linked"
|
||||
# 预期: 仅 linux-vdso、libc、libm、libpthread、ld-linux 等 glibc 组件
|
||||
```
|
||||
|
||||
### 本地构建
|
||||
|
||||
Reference in New Issue
Block a user