mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
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:
1 file changed
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user