From 8032cfa0b2f4070e407f3000959b4b506ac972a0 Mon Sep 17 00:00:00 2001 From: laosb Date: Tue, 20 Jan 2026 23:51:23 +0800 Subject: [PATCH] fix: Zip bundle directory instead of parent dir --- .../ArtifactBundleBuilder+File Operations.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sources/TailwindCSSCLIArtifactBundler/ArtifactBundleBuilder+File Operations.swift b/Sources/TailwindCSSCLIArtifactBundler/ArtifactBundleBuilder+File Operations.swift index 60423b5..26fb71f 100644 --- a/Sources/TailwindCSSCLIArtifactBundler/ArtifactBundleBuilder+File Operations.swift +++ b/Sources/TailwindCSSCLIArtifactBundler/ArtifactBundleBuilder+File Operations.swift @@ -22,14 +22,12 @@ extension ArtifactBundleBuilder { } let bundleDirURL = URL(fileURLWithPath: bundleDir) - let workDirURL = bundleDirURL.deletingLastPathComponent() - let bundleName = bundleDirURL.lastPathComponent let process = Process() process.executableURL = URL(fileURLWithPath: "/usr/bin/zip") let zipPathURL = URL(fileURLWithPath: zipPath).standardizedFileURL - process.arguments = ["-r", zipPathURL.path, bundleName] - process.currentDirectoryURL = workDirURL + process.arguments = ["-r", zipPathURL.path, "."] + process.currentDirectoryURL = bundleDirURL try process.run() process.waitUntilExit()