mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-22 04:30:47 +00:00
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:
1 parent
7a8baa664b
commit
ad06a46ec8
1 file changed
+3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user