Skip to content

Commit 572bc91

Browse files
committed
add comment to FreeBSD zip archiver implementation
1 parent a41805a commit 572bc91

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
@@ -110,6 +110,8 @@ public struct ZipArchiver: Archiver, Cancellable {
110110
workingDirectory: directory.parentDirectory
111111
)
112112
#elseif os(FreeBSD)
113+
// On FreeBSD, the unzip command is available in base but not the zip command.
114+
// Therefore; we use libarchive(bsdtar) to produce the ZIP archive instead.
113115
let process = AsyncProcess(
114116
arguments: ["tar", "-c", "--format", "zip", "-f", destinationPath.pathString, directory.basename],
115117
workingDirectory: directory.parentDirectory

0 commit comments

Comments
 (0)