Cask where download artefact is gzipped, but without .gz extension #1460
Unanswered
chrishowell
asked this question in
Tap maintenance and brew development
Replies: 1 comment 1 reply
-
Is it zipping the file or just the connection? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to write a Cask for a resource that is behind a CloudFlare CDN, it looks like they gzip the resource even if the requester doesn't specify that it can accept compression.
The resource is a .dmg file, but Cloudflare gzips it and doesn't give it the .gz extension, as such the default behaviour is for Homebrew to download the resource and try and unzip it (using the magic number) but then gunzip fails with "unknown suffix -- ignored".
I see (at least) two options, but I'm not sure I can do either of them with the current Cask DSL:
Does anyone have any other ideas, or is there actually a way of doing either of these already?
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions