Skip to content

Commit b49c3d8

Browse files
committed
Fix packaging step for directories
1 parent 85b8dde commit b49c3d8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

omnibus/lib/project_extension.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,12 @@ def notarize_and_staple
286286
# absolute files from the staged root when available.
287287
module PackagerExtraPackageFileStagedRoot
288288
def copy_file(source, destination)
289-
super(staged_extra_package_source(source), destination)
289+
staged_source = staged_extra_package_source(source)
290+
if staged_source != source.to_s && File.directory?(staged_source)
291+
FileUtils.cp_r(staged_source.chomp("/"), destination)
292+
else
293+
super(staged_source, destination)
294+
end
290295
end
291296

292297
private

0 commit comments

Comments
 (0)