Last active
January 7, 2023 08:22
-
-
Save omerxx/b003031ab03efef279387c6e649e2fa1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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