Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 0fd346c

Browse files
committed
新增 测试代码
1 parent aa83b06 commit 0fd346c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/compress.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ function haveLinuxZip() {
114114

115115
async function linuxUnzip(sourceZip: string, destDir: string) {
116116
return new Promise((resolve, reject) => {
117+
console.log("linuxUnzip:", [sourceZip, "-d", destDir]);
117118
const process = child_process.spawn("unzip", [sourceZip, "-d", destDir], {
118119
cwd: path.normalize(path.dirname(sourceZip))
119120
});
@@ -127,10 +128,10 @@ async function linuxUnzip(sourceZip: string, destDir: string) {
127128

128129
// zip -r a.zip css css_v1 js
129130
async function linuxZip(sourceZip: string, files: string[]) {
130-
console.log("DO:", files);
131131
return new Promise((resolve, reject) => {
132132
const p = ["-r", sourceZip];
133133
p.concat(files);
134+
console.log("linuxZip:", p);
134135
const process = child_process.spawn("zip", p, {
135136
cwd: path.normalize(path.dirname(sourceZip))
136137
});

0 commit comments

Comments
 (0)