Appcast Feeds

From Sketch v45 onwards Sketch provides an officially supported mechanism for updating plugins within the app.

To have the Sketchpacks API serve your appcast feed, reference the plugin by identifier for the appcast key in the manifest.json.

Here's an example of Copy Framer Code's manifest.json using the Appcast API endpoint.

  "name" : "Copy Framer Code",
  "identifier" : "com.gilesperry.copy-framer-code",
  "version" : "3.1.1",
  "homepage": "",
  "author" : "Giles Perry",
  "appcast": "",
  // ... reduced for brevity

Viewing the raw body of the Appcast API endpoint provides a similar XML shape as the one below.

<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:sparkle="" xmlns:dc="" version="2.0">
      <enclosure url="" sparkle:version="3.1.1"/>
      <enclosure url="" sparkle:version="3.1.0"/>
      <enclosure url="" sparkle:version="3.0.1"/>
      <enclosure url="" sparkle:version="3.0.0"/>
      <enclosure url="" sparkle:version="2.0.1"/>
      <enclosure url="" sparkle:version="2.0.0"/>

The <channel> enumerates each of Copy Framer Code's releases from Github with version specific download URLs for each enclosure.

Missing a previous version?

Backfilling previous versions is done by tagging a past commit in your history.

Say for example, you forgot to tag your plugin at v2.0.0, which was fixing Bug A. Just find the commit checksum (or SHA) where you commited the fix for Bug A (e.g. 9fceb02), and specify it at the end of the tag command.

$ git tag -a v1.2 9fceb02

Note: The version key's value defined within your plugin's manifest should match your lightweight or annotated tag.

Now push those commits to Github and begin drafting and publishing your releases.

$ git push --tags

By publishing your releases, they'll immediately become available from your plugin's Appcast feed URL.

Caught a mistake or what to contribute to the documentation? Edit this page on Github.

results matching ""

    No results matching ""