Termux/PRoot 适配: 配置 XDG 化 (SZ_CONFIG env/XDG_CONFIG_HOME) + state.db 用户目录 + --server 默认读配置; debian/ 打包 (dpkg-buildpackage, postinst 建 venv 装依赖)

This commit is contained in:
lou
2026-08-10 15:59:47 +08:00
parent f947d48406
commit 8e83581fe5
29 changed files with 2474 additions and 16 deletions
Vendored Executable
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
set -e
case "$1" in
configure)
P=/usr/share/7z-encrypt/.venv
if [ ! -x "$P/bin/python" ]; then
echo "正在创建 7z-encrypt 运行环境 (venv + cryptography/tqdm) ..."
python3 -m venv "$P"
"$P/bin/pip" install --quiet --upgrade pip || true
"$P/bin/pip" install --quiet cryptography tqdm
fi
;;
esac
exit 0