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

Commit ba40fa2

Browse files
committed
修复 错误的路径位置
1 parent b933750 commit ba40fa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/compress.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ async function linuxZip(sourceZip: string, files: string[]) {
134134
files = files.map((v) => path.normalize(path.basename(v)));
135135
console.log("linuxZip:", ["-r", sourceZip, ...files]);
136136
const process = child_process.spawn("zip", ["-r", sourceZip, ...files], {
137-
cwd: path.normalize(path.dirname(files[0]))
137+
cwd: path.normalize(path.dirname(sourceZip))
138138
});
139139
process.stdout.on("data", (data) => {
140140
console.log(data.toString("utf-8"));

0 commit comments

Comments
 (0)