Files
Sparkle/Tests/Resources/testappcast.xml
Zorg ccd8886bfd Adopt sparkle:version and sparkle:shortVersionString elements
We should recommend using sparkle:version and sparkle:shortVersionString elements inside the appcast item instead of inside the enclosure for consistency.

Delta updates do not need to specify sparkle:version, and can inherit the top level element. This clears up some confusion and reduces duplication (and reduces error proneness / saves me work when testing delta / info-only features).

This is also consistent with informational updates. Regardless whether you want to make an update informational only or not, the sparkle:version stays in the same top-level place.

This is a backwards compatible change. Very old versions of Sparkle (possibly up to a decade or more ago) have supported specifying sparkle:version as a top level item. Winsparkle supports it as well because it's needed for info-only updates.

This is only changing what we recommend / standardize. The attribute variants are still usable.

External tools relying on Sparkle's feed format may have to adapt to this standardization (they have always needed to support info-only updates with a missing enclosure which apps do leverage anyway).

I updated generate_appcast to prefer the element variants and updated the tool so it understands them (this was a bug).
2021-06-26 21:01:39 -07:00

52 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
<channel>
<title>For unit test only</title>
<item>
<title>Version 2.0</title>
<description>desc</description>
<pubDate>Sat, 26 Jul 2014 15:20:11 +0000</pubDate>
<!-- Test sparkle:version in enclosure -->
<enclosure url="http://localhost:1337/Sparkle_Test_App.zip" sparkle:version="2.0" />
<sparkle:criticalUpdate sparkle:version="1.5" />
</item>
<!-- The best chosen release -->
<item>
<title>Version 3.0</title>
<sparkle:version>3.0</sparkle:version>
<sparkle:phasedRolloutInterval>86400</sparkle:phasedRolloutInterval>
<!-- Test legacy critical update tag -->
<sparkle:tags><sparkle:criticalUpdate /></sparkle:tags>
<enclosure url="http://localhost:1337/Sparkle_Test_App.zip" length="1346234" />
<sparkle:deltas>
<enclosure url="http://localhost:1337/3.0_from_2.0.patch"
sparkle:deltaFrom="2.0"
length="1235"
type="application/octet-stream"
sparkle:edSignature="..." />
<enclosure url="http://localhost:1337/3.0_from_1.0.patch"
sparkle:deltaFrom="1.0"
length="1485"
type="application/octet-stream"
sparkle:edSignature="..." />
</sparkle:deltas>
</item>
<!-- A release testing minimumSystemVersion -->
<item>
<title>Version 4.0</title>
<sparkle:version>4.0</sparkle:version>
<pubDate>Sat, 26 Jul 2014 15:20:13 +0000</pubDate>
<enclosure url="http://localhost:1337/Sparkle_Test_App.zip" length="1346234" />
<sparkle:minimumSystemVersion>17.0.0</sparkle:minimumSystemVersion>
</item>
<!-- A joke release testing maximumSystemVersion -->
<item>
<title>Version 5.0</title>
<sparkle:version>5.0</sparkle:version>
<enclosure url="http://localhost:1337/Sparkle_Test_App.zip" length="1346234" />
<sparkle:maximumSystemVersion>2.0.0</sparkle:maximumSystemVersion>
</item>
</channel>
</rss>