loading [
0%
]
EN
☽
EN
RU
☀
☽

Homebrew: upgrade & uninstall

What the cask does for you, what it cannot, and the upgrade and uninstall commands.


Installing

brew install --cask n0sfer/tap/humane-space-tab

Homebrew adds the tap on first use, downloads the release image, verifies its SHA-256 against the cask and moves the app into /Applications.

Two things it cannot do for you, both consequences of ad-hoc signing:

  • The first launch is refused. Open System Settings → Privacy & Security, scroll to the bottom and press Open Anyway. Homebrew prints the same thing as a caveat.
  • Accessibility has to be granted after every upgrade, because macOS ties the grant to the code signature and each build carries its own.

Upgrading and removing

brew upgrade --cask humane-space-tab
brew uninstall --cask humane-space-tab      # add --zap to take the preferences too

Where the cask lives

It is not written by hand: scripts/cask.sh builds it from a packaged version, reading the image’s SHA-256 out of dist/.

scripts/package.sh 0.1.0
scripts/cask.sh 0.1.0 > humane-space-tab.rb

The cask lives in a tap of its own — a repository named homebrew-tap under the same owner, so that n0sfer/tap/humane-space-tab resolves to github.com/n0sfer/homebrew-tap. Casks go in Casks/, and nothing else is required of the repository.

Every v* tag updates it: the release job writes the version and the new SHA-256 into Casks/humane-space-tab.rb and pushes. Without the token that lets it in, the job says so and carries on — the release is published either way, and the cask can be updated by hand.