Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kgn/sparklemotion

Python package for creating Sparkle updates.
https://github.com/kgn/sparklemotion

Last synced: about 1 month ago
JSON representation

Python package for creating Sparkle updates.

Awesome Lists containing this project

README

        

SparkleMotion is a python package for creating [Sparkle](http://sparkle.andymatuschak.org) updates.

To use it subclass `SparkleMotion`, set the required variables and overwrite any functions you want to format the various files and labels.

``` python
class ChopShopUpdate(SparkleMotion):
urlRoot = 'http://appcast.inscopeapps.com/ChopShop/'
appPath = '/mercurial/projects/ChopShop/build/Release/ChopShop.app'
privPemPath = '/mercurial/projects/ChopShop/Sparkle/dsa_priv.pem'
stagingAreaPath = '/mercurial/projects/ChopShop/Sparkle/StagingArea'
appCastFileName = 'AppCast.xml'

def zipFileName(self):
return '%s-%s.%s.zip' % (self.appName(), self.shortVersionString().split()[0], self.version())

def releaseNotesFileName(self):
return '%s.%s.html' % (self.shortVersionString().split()[0], self.version())

def updateTitle(self):
return 'Version %s - Build %s' % (self.shortVersionString().split('(')[0], self.version())

def defaultNote(self):
return '''



  • Sweet new feature


    This new feature is going to rock!


'''

ChopShopUpdate().run()
```