kerouac-parcel-appcast
v0.0.1
Published
Kerouac middleware that generates appcasts from Parcel package repositories.
Downloads
2
Readme
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 [email protected]: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
Copyright (c) 2013 Sifteo Inc. <http://www.sifteo.com/>