2.6 KiB
appcast
The value of the appcast stanza is a string, holding the URL for an appcast which provides information on future updates.
Required Appcast Parameters
| key | value |
|---|---|
checkpoint: |
a string holding a custom checksum of the most recent appcast which matches the current Cask versioning. Use `curl --compressed --location --user-agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36' "{{appcast_url}}" |
Example: atom
There are a few different ways the appcast can be determined:
-
If the app is distributed via GitHub releases, the
appcastwill be of the formhttps://github.com/{{user}}/{{project}}/releases.atom. (Example Cask:electron) -
The popular update framework Sparkle generally uses the
SUFeedURLproperty inContents/Info.plistinside.appbundles. You can use the scriptfind_sparkle_appcastto add this automatically. (Example Cask:glyphs) -
Sourceforge projects follow the form
https://downloads.sourceforge.net/projects/{{project_name}}/rss. A more specific page can be used as needed, pointing to a specific directory structure:https://sourceforge.net/projects/{{project_name}}/rss?path=/{{path_here}}. (Example Cask:seashore) -
HockeyApp URLs are of the form
https://rink.hockeyapp.net/api/2/apps/HEXADECIMAL_STRING<SOMETHING_ELSE>. For theappcast, remove<SOMETHING_ELSE>(ending up withhttps://rink.hockeyapp.net/api/2/apps/HEXADECIMAL_STRING. (Example Cask:iconjar) -
An appcast can be any URL hosted by the app’s developer that changes every time a new release is out (e.g. a changelog HTML page). (Example Cask:
shortcat)