Skip to content

Commit 89472d8

Browse files
authored
Stop creating redundant bundle (#7420)
1 parent 37a36fa commit 89472d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ReleaseTooling/Sources/ZipBuilder/ResourcesManager.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,11 @@ extension ResourcesManager {
241241
continue
242242
}
243243

244+
if fullPath.lastPathComponent.hasSuffix("bundle") {
245+
// It's already a bundle, so no need to create one.
246+
continue
247+
}
248+
244249
// It's a folder. Generate the name and location based on the folder name.
245250
let name = fullPath.lastPathComponent + ".bundle"
246251
let location = dir.appendingPathComponent(name)

0 commit comments

Comments
 (0)