deb: postinst 自动安装系统依赖 (aria2 + p7zip-full), control Depends 加 aria2

This commit is contained in:
lou
2026-08-10 22:24:30 +08:00
parent b445b3ab30
commit 1bce0b5daf
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ Standards-Version: 4.6.2
Package: 7z-encrypt-client
Architecture: all
Depends: python3 (>= 3.10), python3-venv, p7zip-full
Depends: python3 (>= 3.10), python3-venv, p7zip-full, aria2
Description: 端到端加密文件传输客户端 (源码版, 手机/Termux 用)
零知识 + 零合并的文件安全传输客户端:
7z 压缩 -> cobblestone 加密 -> 分卷上传; 下载逐卷拉取本地解密。
@@ -18,7 +18,7 @@ Description: 端到端加密文件传输客户端 (源码版, 手机/Termux 用)
Package: 7z-encrypt-client-bin
Architecture: amd64
Depends: p7zip-full
Depends: p7zip-full, aria2
Conflicts: 7z-encrypt-client
Replaces: 7z-encrypt-client
Description: 端到端加密文件传输客户端 (x86_64 原生编译版)
+2
View File
@@ -3,6 +3,8 @@ set -e
case "$1" in
configure)
echo "正在安装系统依赖 (aria2 + p7zip-full) ..."
apt-get install -y aria2 p7zip-full >/dev/null 2>&1 || true
P=/usr/share/7z-encrypt/.venv
if [ ! -x "$P/bin/python" ]; then
echo "正在创建 7z-encrypt 运行环境 (venv + cryptography/tqdm) ..."