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.
This commit is contained in:
Leo Camus authored and GitHub committed 2026-09-18 21:00:27 -07:00
1 parent 7a8baa664b
commit ad06a46ec8
1 file changed
+3
+3
View File
@@ -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.