Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculating the current download and current version? #806

Closed
tjluoma opened this issue Jul 22, 2013 · 1 comment
Closed

Calculating the current download and current version? #806

tjluoma opened this issue Jul 22, 2013 · 1 comment

Comments

@tjluoma
Copy link

tjluoma commented Jul 22, 2013

Does cask have (or want, or plan to add) some way to automatically calculate the current download URL and current version?

I've been working on figuring this out for a number of apps that I use which don't use 'static' download URLs. Ideally an app will have a Sparkle RSS feed which can be easily parsed for the current information.

For example, the latest download URL for VLC.app can be found here:

curl -sL 'http://update.videolan.org/vlc/sparkle/vlc.xml' |\
awk -F'"' '/http:\/\/.*\.dmg/{print $2}' |\
tail -1

And the latest version

curl -sL 'http://update.videolan.org/vlc/sparkle/vlc.xml' |\
awk -F'"' '/sparkle:version/{print $2}' |\
tail -1

There's even a checksum, although it isn't SHA1

It seems to be that if cask could fetch the download URLs and version information 'dynamically' (I don't know what else to call it) then it would require less 'maintenance' of the various cask files for specific apps, especially apps which are frequently updated.

@phinze
Copy link
Contributor

phinze commented Jul 22, 2013

Great minds think alike! 😉 We've already been talking about this on over to #260 and your thoughts or PRs are very welcome!

Closing this one so we can keep the conversation going on #260.

@phinze phinze closed this as completed Jul 22, 2013
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants