Skip to content

Commit f6d4064

Browse files
committed
add comment to FreeBSD zip archiver implementation
1 parent 5daa42a commit f6d4064

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Basics/Archiver/ZipArchiver.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ public struct ZipArchiver: Archiver, Cancellable {
8686
workingDirectory: directory.parentDirectory
8787
)
8888
#elseif os(FreeBSD)
89+
// On FreeBSD, the unzip command is available in base but not the zip command.
90+
// Therefore; we use libarchive(bsdtar) to produce the ZIP archive instead.
8991
let process = AsyncProcess(
9092
arguments: ["tar", "-c", "--format", "zip", "-f", destinationPath.pathString, directory.basename],
9193
workingDirectory: directory.parentDirectory

0 commit comments

Comments
 (0)