0.0.1 • Published 11 years ago

kerouac-parcel-appcast v0.0.1

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

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/](http://www.sifteo.com/)