Improve detecting non-canonical Sparkle bundles in generate_appcast (#2836)

Don't check for Contents parent directory when checking for "Resources"
This commit is contained in:
Zorg authored and GitHub committed 2026-01-09 21:40:20 -08:00
1 parent 6460d63f3e
commit 787d844be3
1 file changed
+2 -2
+2 -2
View File
@@ -301,8 +301,8 @@ class ArchiveItem: CustomStringConvertible {
for case let fileURL as URL in enumerator {
let name = fileURL.lastPathComponent
// Skip Contents/Resources entirely because frameworks shouldn't be in there and we don't want to pay the cost of scanning in there
guard name != "Resources" || fileURL.deletingLastPathComponent().lastPathComponent != "Contents" else {
// Skip Resources in bundles entirely because frameworks shouldn't be in there and we don't want to pay the cost of scanning in there
guard name != "Resources" else {
enumerator.skipDescendants()
continue
}