Skip to content

Commit

Permalink
add comment to FreeBSD zip archiver implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-yuji committed Jan 7, 2025
1 parent 5daa42a commit f6d4064
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Basics/Archiver/ZipArchiver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ public struct ZipArchiver: Archiver, Cancellable {
workingDirectory: directory.parentDirectory
)
#elseif os(FreeBSD)
// On FreeBSD, the unzip command is available in base but not the zip command.
// Therefore; we use libarchive(bsdtar) to produce the ZIP archive instead.
let process = AsyncProcess(
arguments: ["tar", "-c", "--format", "zip", "-f", destinationPath.pathString, directory.basename],
workingDirectory: directory.parentDirectory
Expand Down

0 comments on commit f6d4064

Please sign in to comment.