17 lines
403 B
Bash
Executable File
17 lines
403 B
Bash
Executable File
#!/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
|