Skip to content

Instantly share code, notes, and snippets.

@omerxx
Last active January 7, 2023 08:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omerxx/b003031ab03efef279387c6e649e2fa1 to your computer and use it in GitHub Desktop.
Save omerxx/b003031ab03efef279387c6e649e2fa1 to your computer and use it in GitHub Desktop.
class Mytool < Formula
desc "Some description"
homepage "https://github.com/myrepo/mytool"
url ".../mytool-darwin-amd64.tar.gz", :using => GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "<SHA256 CHECKSUM>"
head "https://github.com/myrepo/mytool.git"
def install
bin.install "mytool"
end
# Homebrew requires tests.
test do
assert_match "mytool version 1.0.0", shell_output("#{bin}/mytool -v", 2)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment