kerouac-parcel-appcast

0.0.1 • Public • Published

kerouac-parcel-appcast

This is middleware for Kerouac that generates Sparkle-compatible appcasts from Parcel package repositories.

Applications can poll appcasts to check for the latest version, prompting users to update when a new version is available.

Install

$ npm install kerouac-parcel-appcast

Install for development:

$ git clone git@bitbucket.org:sifteo/kerouac-parcel-appcast.git
$ cd kerouac-parcel-appcast
$ npm link

Usage

To generate an appcast, use appcast middleware passing in a repository and query as arguments. In the example below, all versions of the package named "sync" for Mac OS X will be selected and placed as items in the appcast.

Metadata about the appcast itself, including title and description is passed as a hash in the third argument.

var appcast = require('kerouac-parcel-appcast');

var repo = parcel.createRepository('repo.json');

site.page('/sync/macosx.xml', appcast(repo, { name: 'sync', os: 'macosx' },
                                      { title: 'Sifteo Sync',
                                        description: 'The latest updates to Sifteo Sync.',
                                        packageLink: 'http://sifteo.com/download' }));

License

Apache License, Version 2.0

Copyright (c) 2013 Sifteo Inc. <http://www.sifteo.com/>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0

Package Sidebar

Install

npm i kerouac-parcel-appcast

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • jaredhanson