From 787d844be3af5ca4480dce53a19c71c67bb2324e Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 9 Jan 2026 21:40:20 -0800 Subject: [PATCH] Improve detecting non-canonical Sparkle bundles in generate_appcast (#2836) Don't check for Contents parent directory when checking for "Resources" --- generate_appcast/ArchiveItem.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate_appcast/ArchiveItem.swift b/generate_appcast/ArchiveItem.swift index 262e4b90..8478d355 100644 --- a/generate_appcast/ArchiveItem.swift +++ b/generate_appcast/ArchiveItem.swift @@ -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 }