Termux/PRoot 适配: 配置 XDG 化 (SZ_CONFIG env/XDG_CONFIG_HOME) + state.db 用户目录 + --server 默认读配置; debian/ 打包 (dpkg-buildpackage, postinst 建 venv 装依赖)
This commit is contained in:
+16
@@ -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
|
||||
Reference in New Issue
Block a user