From 045555c63d134b1f1b7005e234052be0db7d362d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 12 Aug 2024 15:41:22 +0800 Subject: [PATCH] fix --- entrypoint.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 469743a..d994cf8 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,11 +14,9 @@ chech_quotes(){ # 安装 napcat if [ ! -f "napcat/napcat.mjs" ]; then - rarch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/x64/) - unzip -q NapCat.linux.${rarch}.zip - mv NapCat.linux.${rarch}/config/* napcat/config/ && rmdir NapCat.linux.${rarch}/config - mv NapCat.linux.${rarch}/* napcat/ - chmod +x napcat/napcat.sh + unzip -q NapCat.Shell.zip + mv NapCat.Shell/config/* napcat/config/ && rmdir NapCat.Shell/config + mv NapCat.Shell/* napcat/ fi CONFIG_PATH=napcat/config/onebot11_$ACCOUNT.json @@ -97,4 +95,4 @@ Xvfb :1 -screen 0 1080x760x16 +extension GLX +render & export FFMPEG_PATH=/usr/bin/ffmpeg export DISPLAY=:1 cd ./napcat -qq --no-sandbox -q $ACCOUNT \ No newline at end of file +qq --no-sandbox -q $ACCOUNT