Skip to content

Commit

Permalink
28060
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Sep 16, 2024
1 parent 31412d5 commit 4908692
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ RUN useradd --no-log-init -d /app napcat
WORKDIR /app

COPY NapCat.Shell.zip entrypoint.sh /app/
COPY qqnt.json

# 安装Linux QQ
RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && \
curl -o linuxqq.deb https://dldir1.qq.com/qqfile/qq/QQNT/1aff6d6d/linuxqq_3.2.12-28060_${arch}.deb && \
dpkg -i --force-depends linuxqq.deb && rm linuxqq.deb && \
chmod +x entrypoint.sh && \
echo "(async () => {await import('file:///app/napcat/napcat.mjs');})();" > /opt/QQ/resources/app/loadNapCat.js

echo "(async () => {await import('file:///app/napcat/napcat.mjs');})();" > /opt/QQ/resources/app/loadNapCat.js && \
cp -i qqnt.json /opt/QQ/resources/app/package.json

VOLUME /app/napcat/config
VOLUME /app/.config/QQ

Expand Down
2 changes: 1 addition & 1 deletion qqnt.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"bin": {
"qd": "externals/devtools/cli/index.js"
},
"main": "./index.js",
"main": "./loadNapCat.js",
"buildVersion": "28060",
"platform": "linux",
"eleArch": "x64",
Expand Down

0 comments on commit 4908692

Please sign in to comment.