Skip to content

Commit

Permalink
Merge pull request #1034 from digitalmoksha/master
Browse files Browse the repository at this point in the history
added `sparkle:shortVersionString` to the enclosure, #1032
  • Loading branch information
kornelski committed Feb 10, 2017
2 parents f43c836 + 5210e1d commit e1f67cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generate_appcast/FeedXML.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func writeAppcast(appcastDestPath: URL, updates: [ArchiveItem]) throws {
var attributes = [
XMLNode.attribute(withName: "url", stringValue: archiveURL) as! XMLNode,
XMLNode.attribute(withName: "sparkle:version", uri: sparkleNS, stringValue: update.version) as! XMLNode,
XMLNode.attribute(withName: "sparkle:shortVersionString", uri: sparkleNS, stringValue: update.shortVersion) as! XMLNode,
XMLNode.attribute(withName: "length", stringValue: String(update.fileSize)) as! XMLNode,
XMLNode.attribute(withName: "type", stringValue: update.mimeType) as! XMLNode,
];
Expand All @@ -144,6 +145,7 @@ func writeAppcast(appcastDestPath: URL, updates: [ArchiveItem]) throws {
var attributes = [
XMLNode.attribute(withName: "url", stringValue: URL(string: delta.archivePath.lastPathComponent.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlPathAllowed)!, relativeTo: update.archiveURL)!.absoluteString) as! XMLNode,
XMLNode.attribute(withName: "sparkle:version", uri: sparkleNS, stringValue: update.version) as! XMLNode,
XMLNode.attribute(withName: "sparkle:shortVersionString", uri: sparkleNS, stringValue: update.shortVersion) as! XMLNode,
XMLNode.attribute(withName: "sparkle:deltaFrom", uri: sparkleNS, stringValue: delta.fromVersion) as! XMLNode,
XMLNode.attribute(withName: "length", stringValue: String(delta.fileSize)) as! XMLNode,
XMLNode.attribute(withName: "type", stringValue: "application/octet-stream") as! XMLNode,
Expand Down

0 comments on commit e1f67cf

Please sign in to comment.