Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/kgn/sparklemotion
- Owner: kgn
- Created: 2010-11-14T07:38:29.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2011-12-24T17:48:16.000Z (almost 13 years ago)
- Last Synced: 2023-03-11T10:28:08.318Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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()
```