downloads-brainstorming: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(added note that there are users who want to see and use the MD5 checksum)
(: added Wakoopa, which supports a variety of formats, linked to the non-appcast formats for reference)
Line 175: Line 175:
* [ AppFresh] uses Sparkle-enhanced appcasts, including those generated by [ iusethis] (e.g. [ the iGTD appcast]).
* [ AppFresh] uses Sparkle-enhanced appcasts, including those generated by [ iusethis] (e.g. [ the iGTD appcast]).
* [ Spangle] (formerly known as Perrier) uses Sparkle-enhanced RSS appcasts.
* [ Spangle] (formerly known as Perrier) uses Sparkle-enhanced RSS appcasts.
* [ Wakoopa]'s [ vendor program] (web application) supports VersionTracker [], Appcast and PAD []

== Implementations ==
== Implementations ==

Revision as of 13:12, 6 May 2009

Downloads Brainstorming

The purpose of this page is to capture software download and software update practices in the wild, as one effort to codify practices currently used in the automatic update system called Sparkle.

This page was recently merged from appcast-brainstorming, and may therefore still have references to an "appcast microformat".



Sites like,, and, among others, provide software downloads, both new releases and updates.

Among common data in a software update changelog are changes or fixes, completed bugs, new features or modified behavior, and known issues. A version number is also typically supplied, but takes on many forms and is not always numeric.

Lastly, this work should be seen as compatible with hAtom, possibly as a prelude to a format that could be embedded as the payload of an hfeed object.

Related Work

  • hash-brainstorming has a section about hAtom integration. The example uses a "download" class, which contains a rel-enclosure link as well as a span with "md5" and "checksum" classes.

Sparkle-specific Appcast enhancements

Sparkle adds a few extra features to appcasts:

  • External release notes URL: used when the release notes are not included in the appcast itself
  • MD5 sums and DSA signatures: used for some extra security
  • Version strings: Sparkle will try to determine the application version from the enclosure name, which is assumed to be If this is not possible, the sparkle:version attribute will be used. The sparkle:shortVersionString attribute contains the version string that will be displayed to the user (useful when the actual version number is an internal build number, for example).

The downloads microformat should probably support these features as well.

The MD5 sum and DSA signature is specific for an enclosure. It is, however, not possible to add these extra attributes to a rel="enclosure" link. A hentry in an downloads microformat can only have one enclosure, so the MD5 sum and DSA signature should be part of the hentry.


This proposal is mostly inspired by appcasts with Sparkle extensions.

  • Each hentry has one enclosure, and possibly checksums and digital signatures.
  • Each hentry has one version which holds the application version.


		<title>Version History</title>
		<h1>Version History</h1>
		<div class="hentry">
			<h2 class="entry-title">Adium <span class="version">1.0.4</span></h2>
			<p>Updated on <abbr class="updated" title="2007-06-20T18:00+01:00">24 June</abbr>.</p>
			<div class="entry-content">
					<li>Fixed a crash introduced in 1.0.3 which could occur when accounts disconnected or status changed</li>
					<li>Fixed group chat when message history is enabled</li>

				<a href="" rel="enclosure">Download</a>.
				<span class="checksum">
					The <span class="type">MD5</span> checksum of this download is
					<span class="value">e0d123e5f316bef78bfdf5a008837577</span>.

The hash microformat used in this proposal is likely to change.

Multi-app/arch/OS/... download pages

A single downloads page can have downloads for different applications, different versions, different architectures, different operating systems, etc (for example, the MySQL downloads page).

Here's a probably incomplete list of different download properties:

  • Architecture: PPC, x86, 68k, architecture-independent, …
  • OS: Mac OS X, Windows XP, OS-independent, …
  • Download type: Ruby Gem, gzipped tarball, Mac OS X DMG, …

However, multi-* download pages are hard to do right, and therefore probably not worth supporting. A single HTML page should therefore only contain downloads for one application, one OS, one architecture, etc.

It's been suggested that tags could be used to mark up OSes and architectures.



How should DSA signatures be handled? Should a simple <span class="dsa-signature">...</span> work? Should DSA signatures be part of the hash microformat (see hash-brainstorming)?

  • digital-signatures seems to be useful, but only for signing microformat data, not enclosures.
  • Is it really worth supporting DSA signatures in downloads? How many people use these DSA signatures anyway?
    • Sparkle 2.0 will likely make DSA signatures a requirement. There will also be a tool that auto-signs updates. Something to keep in mind. DenisDefreyne 13:21, 12 Aug 2007 (PDT)

Smaller Download Microformat

Merging the appcast and the downloads microformat might not have been a smart idea, for the following reasons:

  • The name "downloads" is very general and very vague.
  • Marking up a single download with hAtom doesn't make much sense.

A simpler download microformat, which is basically a rel-enclosure with some extra data (MD5 sum, DSA signature) may be useful. Something along these lines, perhaps:

For example:

<p class="download">
    Download <a href="" rel="enclosure">Blah 2.1</a>!
    (<span class="checksum"><span class="type">MD5</span> checksum: <span class="value">c23316cb51ca5125d1417faba5cef51e</span></span>).

This smaller download microformat could then be used inside a hentry in the larger appcast microformat.


What name should this microformat have?

  • "appcast": too specific? appcast shouldn't be limited to applications, and the term may be too jargony. Tantek doesn't like it.
  • "downloads": too general? Chris doesn't like it.
  • "software-updates": is "software" too general?

Version Numbers

Each entry needs a version number, so software update frameworks can figure out which version number to display. (Sparkle can actually figure out the version number from the download URL, but not always.)

In the proposal above, the "version" class name is used, but I'm not happy about it. In other microformats, "version" is used to indicate the version of the microformat, not the version of something that is described using the microformat. "revision" is probably a better name.

Sparkle can actually use a "shortVersionNumber" argument, which is displayed in Sparkle instead of "version" if present.

These two version attributes will need to be marked up in some way in the appcast microformat at well. Some possible names:

  • "revision" and "short-revision"
    • The term "revision" isn't usually used in released software; I think I've only heard the term in VCSes (CVS, SVN, etc).
  • "app-version" and "app-version-short"
  • "enclosure-version" and "short-enclosure-version"
    • Seems to refer to the version of the download, and not necessarily the version of the application included in the download

Overlap with Changesets

Changesets are very similar to downloads, with the exception that there are no downloads (another reason why the "downloads" name sucks?). Each changeset entry (hentry) usually has a short description (entry-title), a list of changes (entry-description), and a revision number.

Download Link in entry-content

It makes sense for the download link (the one with rel-enclosure) to sit inside the entry-content. Otherwise, what's the point of having a download link if it doesn't show up in the feed?

If the download link is inside the entry-content, though, Sparkle's "release notes" view will show that download link as well. This is confusing, because people could click that link in the release notes view, which would download the update in Safari like a regular file. Instead, the user should click the "Install Update" button.

Additionally, stuff such as MD5 checksums and DSA signatures should probably be hidden from the release notes view as well, because they can't be used by the user anyway (but they are used by Sparkle).

    • MD5s are used manually, i.e. on some download pages they appear as visible text next to the download link, and there are tools (MD5 apps and download apps with MD5 options) for manual copying and pasting

To prevent this download link (as well as the MD5 sum etc) from showing up, anything inside a mini "download" microformat (see above) could be hidden.

    • MD5s should not be hidden from users who would copy and paste it (see above)

To Do

  • Create a hash microformat (see hash-brainstorming).
  • Figure out how to include DSA signatures for enclosures.
  • Figure out whether hListing draft could be used instead of hAtom 0.1.
  • Figure out whether changesets can benefit from this microformat.

Software using appcasts

This is a list of programs and frameworks that use appcasts or appcast-like data.


The hatom-sparkle project on Google Code (project page, repository) is a fork of Sparkle that adds hAtom support. It is functional, but lacks support for shortVersionString as well as MD5 sums and DSA signatures.

Related Pages

See Also