-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Switch spotify from latest to 1.0.68.407.g6864aaaf-37 #41520
Conversation
How would we even know what the new version is when it changes? Without inspecting the |
Don't think there currently is a way - as mentioned in the PR description I wasn't able to find anything resembling an |
Without an Also things like this: Parsing I appreciate that you've put work into trying to version this but it isn't practical. RE: the list in Homebrew/brew#3396 (comment) Several of those Casks are deliberately unversioned even if versioned downloads or appcasts exist. A couple of them should probably have |
I see, thanks for the input. It might be good to update Adding a Cask doc - at the moment it recommends using |
This is generally correct, we prefer versioned downloads unless they are impractical / regularly break, etc. Edit: we sometimes don't know until after they have been added that keeping them versioned is impractical. This is also overridden by other docs depending on the Cask, i.e. for nightlys:
|
I guess the desire to make it versioned is mostly triggered by the decision in Homebrew/brew#3396 to include
My comment on the doc was meant to be more specific - if not having an |
After making all changes to the
brew cask audit --download {{cask_file}}
is error-free.brew cask style --fix {{cask_file}}
reports no offenses.This switches Spotify cask from
:latest
and:no_check
to the current version. The versioned download is the same as the one used by the auto-updater, it seems to have the same content as the offline installer but withoutSpotify.app
root dir. For further updates the version can typically be found inCFBundleVersion
property of/Applications/Spotify.app/Contents/Info.plist
after auto-updating. In rare cases of a mismatch - eg. at the momentCFBundleVersion
is1.0.68.407.g6864aaaf-36
but the download is1.0.68.407.g6864aaaf-37
- it can be found by inspecting the app calls with a proxy tool.I've tried (hard) to find an
appcast
without any success: app seems to get it via an encrypted TCP connection to one of the "ap" servers, and they decided to stop providing release notes. So although automating version upgrades for this cask at the moment doesn't look easy, I've decided to give this a try since this is one of the few remaining popular casks with both:latest
andauto_updates
that won't work well with the shiny newbrew cask upgrade
.Please feel free to weigh in, I would love to get maintainers' input before looking into other
:latest
casks I use.