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 filehummingbird.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