Skip to content

Instantly share code, notes, and snippets.

@finestructure
Last active June 23, 2020 03:09
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save finestructure/e1608a7cba0383c1f5fa386ab044b03b to your computer and use it in GitHub Desktop.
Save finestructure/e1608a7cba0383c1f5fa386ab044b03b to your computer and use it in GitHub Desktop.
Homebrew app release

Example for app Hummingbird https://hbird.app

  • Notarise: Organizer → Distribute App → Developer ID → upload for notarisation

  • Export and zip app

  • Compute sha: openssl sha256 Hummingbird-xyz-b.zip

  • Create repository homebrew-Hummingbird (see https://github.com/finestructure/homebrew-Hummingbird)

  • Inside it create a folder Casks with a single file hummingbird.rb with contents:

cask 'hummingbird' do
  version '3.0.1-2'
  sha256 'be6c1baacf1073c98eca7f3cfb02d8518dac8157ee6aca7068c0e4431f3c140e'

  url "https://finestructure.co/s/Hummingbird-#{version.no_dots}.zip"
  name 'Hummingbird'
  homepage 'https://finestructure.co/hummingbird'

  app 'Hummingbird.app'
end
  • Replace the appname/url/sha as needed. Subsequent releases only require updating the version number and sha (see this commit for an example)

  • Users can then

brew tap finestructure/Hummingbird
brew cask install Hummingbird

And for subsequent updates, run

brew cask upgrade Hummingbird
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment