Skip to content

Commit fa3d6f0

Browse files
committed
removes quarantine flags before building
1 parent 69e136e commit fa3d6f0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Sources/quickpkg/PackageBuilder.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ struct PackageBuilder: Sendable {
5757
if !relocatable {
5858
try PlistHandler.setRelocatable(false, in: componentPlist)
5959
}
60-
60+
61+
// Remove quarantine extended attributes from payload
62+
logger.log("Removing quarantine attributes from payload", level: 1)
63+
_ = try await executor.run([
64+
"/usr/bin/xattr", "-dr", "com.apple.quarantine", payloadDir.path
65+
])
66+
6167
// Build the pkgbuild command
6268
var arguments = [
6369
"/usr/bin/pkgbuild",

0 commit comments

Comments
 (0)