Why? Because some of my projects are to small for homebrew. Still I want to install them with the brew command. That's why. If you want you can use this tap too.
brew install b3z/small/<formula>
brew help, man brew or check Homebrew's documentation.
-
make sure your app name doesn't exist in this repo yet. E.g. reventlou.rb already exists. So you will need to pick a different name.
-
create a new template
brew create --cask download-url --set-name my-new-cask # download-url to your .dmg file. # my-new-cask is the name you picked. E.g. reventlou (but this one is gone already :) )it will open in an editor. Now fill out the rest. If you don't know how you can either check how other people did it in this repo or check the docs
- test your cask
You can also replace my-new-cask with your .rb file.
Give it a shot with:
export HOMEBREW_NO_AUTO_UPDATE=1 brew install my-new-caskDid it install? If something went wrong, edit your Cask with brew edit my-new-cask to fix it.
Test also if the uninstall works successfully:
brew uninstall my-new-caskIf everything looks good, you’ll also want to make sure your Cask passes audit with:
This doesn't need to run flawlessly since this is repo is for projects that doesn't meet all of these requirements.
brew audit --new-cask my-new-caskYou should also check stylistic details with brew style:
brew style --fix my-new-caskKeep in mind all of these checks will be made when you submit your PR, so by doing them in advance you’re saving everyone a lot of time and trouble.
If your application and Homebrew Cask do not work well together, feel free to file an issue after checking out open issues.
- finally make a pr to this repo with your .rb - you can click here to do that. Add your file to the
Casksdirectory of this repository.