From 0fd346c837ed4129e9ca460852f5dee2e8eac4b2 Mon Sep 17 00:00:00 2001 From: Suwings Date: Wed, 11 May 2022 19:41:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/compress.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/compress.ts b/src/common/compress.ts index 1b58c04..69f8981 100644 --- a/src/common/compress.ts +++ b/src/common/compress.ts @@ -114,6 +114,7 @@ function haveLinuxZip() { async function linuxUnzip(sourceZip: string, destDir: string) { return new Promise((resolve, reject) => { + console.log("linuxUnzip:", [sourceZip, "-d", destDir]); const process = child_process.spawn("unzip", [sourceZip, "-d", destDir], { cwd: path.normalize(path.dirname(sourceZip)) }); @@ -127,10 +128,10 @@ async function linuxUnzip(sourceZip: string, destDir: string) { // zip -r a.zip css css_v1 js async function linuxZip(sourceZip: string, files: string[]) { - console.log("DO:", files); return new Promise((resolve, reject) => { const p = ["-r", sourceZip]; p.concat(files); + console.log("linuxZip:", p); const process = child_process.spawn("zip", p, { cwd: path.normalize(path.dirname(sourceZip)) });