From 661a5dac07b384d54c12e932d3c97f871ecb3ecc Mon Sep 17 00:00:00 2001 From: Russell Cousineau Date: Wed, 7 Apr 2021 15:50:11 -0700 Subject: [PATCH] update homebrew formula docs --- Formula/README.md | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/Formula/README.md b/Formula/README.md index 746e2f84..ec712140 100644 --- a/Formula/README.md +++ b/Formula/README.md @@ -1,18 +1,41 @@ # Maintaining Homebrew Formula -In order to update to a new release: +## Update Formula + +This should be done each time a release is cut. See: [RELEASES](../RELEASES.md) 1. go to https://github.com/appnexus/ankh/releases to get the URL for the **source** tarball -2. `brew create ` - note the line of the output "For your reference the SHA-256 is: " +2. get sha256 + +```sh +$ curl -s | shasum -a 256 - + - +``` + +*example:* + +```sh +$ curl -s https://github.com/appnexus/ankh/archive/v2.1.0.tar.gz | shasum -a 256 - +770e8e5bacb91b93985ea05f2fcd3ea30faf8ad0a4fda32b61164cd051c29042 - +``` 3. update Formula/ankh.rb with: ``` -url "``" -sha256 "``" +url "``" +sha256 "``" ``` +*example:* + +``` +url "https://github.com/appnexus/ankh/archive/v2.1.0.tar.gz" +sha256 "770e8e5bacb91b93985ea05f2fcd3ea30faf8ad0a4fda32b61164cd051c29042" +``` + +## Troubleshooting + If you get an error like: ```