From 26143a55b91792d7b3a35adaf69da16563a7ccf9 Mon Sep 17 00:00:00 2001 From: Kubbo <390378816@qq.com> Date: Sun, 22 Dec 2024 16:03:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=89=93=E5=8C=85=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E5=A2=9E=E5=8A=A0=20api.php=20=E5=92=8C=20li?= =?UTF-8?q?nuxdo.php=20=E6=96=87=E4=BB=B6=E7=9A=84=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deploy.js b/deploy.js index 145cbf9..a634a60 100644 --- a/deploy.js +++ b/deploy.js @@ -3,9 +3,11 @@ const JSZip = require("jszip"); const zip = require("./zip.js") const start = () => { zip.start().then(() => { - const tar = new JSZip() - const config = fs.readFileSync('config.xml', 'utf8') - tar.file('config.xml', config); + const tar = new JSZip(); + ['config.xml', 'api.php', 'linuxdo.php'].forEach(e => { + const file = fs.readFileSync(e) + tar.file(e, file); + }) const main = fs.readFileSync('main.min_jocw9Tu2.js', 'utf8') tar.file('main.min_jocw9Tu2.js', main, {compression: "DEFLATE", compressionOptions: {level: 9}}); // 生成ZIP文件内容