From 4f757ee3306cf09f52cbd503ec8319c61d08eeee Mon Sep 17 00:00:00 2001 From: Leo Camus Date: Sat, 19 Sep 2026 06:00:27 +0200 Subject: [PATCH] Drop stale sparkle:format when generate_appcast embeds HTML release notes (#2927) When an existing item's description is rewritten with HTML release notes, the sparkle:format attribute from a previous plain-text or markdown description was kept, so Sparkle kept rendering the new HTML as that format. --- generate_appcast/FeedXML.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generate_appcast/FeedXML.swift b/generate_appcast/FeedXML.swift index 91e53991..745e1e6b 100644 --- a/generate_appcast/FeedXML.swift +++ b/generate_appcast/FeedXML.swift @@ -519,6 +519,9 @@ func writeAppcast(appcastDestPath: URL, keys: PrivateKeys, disableEmbeddedSignWa descElement.setChildren([cdata]) if descriptionFormat != "html" { descElement.addAttribute(XMLNode.attribute(withName: SUAppcastAttributeFormat, stringValue: descriptionFormat) as! XMLNode) + } else { + // html is the default format, so drop a format left over from previously embedded release notes + descElement.removeAttribute(forName: SUAppcastAttributeFormat) } } else if let existingDescriptionElement = findElement(name: "description", parent: item) { // The update doesn't include embedded release notes. Remove it.