From 58f9117e45b4a4f857c23a81c9c772baa1a97cb0 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sun, 21 Jul 2024 22:40:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85=E8=BF=87=E7=A8=8B=E4=B8=AD?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E8=AE=BE=E7=BD=AEvnc=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deb-termux/DEBIAN/postinst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/deb-termux/DEBIAN/postinst b/deb-termux/DEBIAN/postinst index d987787..83453f8 100755 --- a/deb-termux/DEBIAN/postinst +++ b/deb-termux/DEBIAN/postinst @@ -107,5 +107,21 @@ fi #fi # 设置目录权限,让用户可读可写,方便后续删除组件 chmod 777 -R /opt/apps/deepin-wine-runner > /dev/null 2>&1 | true + +if [[ ! -f /data/data/com.termux/files/home/.vnc/passwd ]]; then + echo 开始配置 VNCServer + echo 接下来需要设置 VNCServer 的密码 + set +e + while [[ 1 ]]; + do + vncpasswd + if [[ $? == 0 ]]; then + break + fi + echo 设置有误,需重新设置 + sleep 1 + done +fi + # 向服务器返回安装数加1(不显示内容且忽略错误) python3 /opt/apps/deepin-wine-runner/Download.py $version > /dev/null 2>&1 | true