From 1aa59872d0b8b875fea6e4f9a6e3208f7d1e68d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Fri, 23 Feb 2024 14:11:46 +0800 Subject: [PATCH] fix bug. --- Dockerfile | 1 - install-wechat.sh | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7776f51..375236b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,6 @@ RUN ls -lah # 安装微信 COPY install-wechat.sh install-wechat.sh -RUN bash -c 'nohup /entrypoint.sh 2>&1 &' && sleep 10 && sudo netstat -ntlp RUN sudo chmod a+x install-wechat.sh && ./install-wechat.sh RUN rm -rf WeChatSetup.exe && rm -rf install-wechat.sh diff --git a/install-wechat.sh b/install-wechat.sh index 4adcc9c..1628d29 100644 --- a/install-wechat.sh +++ b/install-wechat.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# 启动窗口管理器 +bash -c 'nohup /entrypoint.sh 2>&1 &' +sleep 10 +sudo netstat -ntlp + ## https://gitlab.com/cunidev/gestures/-/wikis/xdotool-list-of-key-codes function install() { while :