Skip to content

Writing a custom download strategy from scratch? #574

Discussion options

You must be logged in to vote

Check out https://rubydoc.brew.sh/AbstractFileDownloadStrategy.html and its subclasses. Mostly what you'd need to do is properly implement fetch by using cached_location, symlink_location, and temporary_path correctly. Note that this would likely not be accepted into Homebrew itself, so you'd have to host this cask or formula in your own tap: https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lmartinez-mirror
Comment options

@gromgit
Comment options

@jonchang
Comment options

Answer selected by lmartinez-mirror
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants