This information is only relevant to virtualhost.sh maintainers.
In all the examples below 1.32 is used as an example only, change it to the version you are releasing.
- Increase the version number in virtualhost.sh (the
version
variable). - Change the version number in the virtualhost.sh header.
- Update CHANGES.md.
- (optional) Tag the new release manually with
git tag 1.32
and push the tag withgit push --tags
- Make a new release on GitHub and add the changelog notes there.
- Submit the new release to Homebrew (below).
Homebrew pull request reference guide
cd $(brew --repository); brew update
git checkout -b virtualhost.sh-1.32
brew edit virtualhost.sh
and change the url to https://github.com/virtualhost/virtualhost.sh/archive/1.32.tar.gz
brew reinstall virtualhost.sh
and you will see a message like:
==> Reinstalling virtualhost.sh
==> Downloading https://github.com/virtualhost/virtualhost.sh/archive/1.32.tar.gz
######################################################################## 100.0%
Error: SHA1 mismatch
Expected: 25954027dbed14843123bea4efd498cd2abfc4a0
Actual: dc307937e10c2a5948c59ff2ece6495763415b77
Archive: /Library/Caches/Homebrew/virtualhost.sh-1.32.tar.gz
To retry an incomplete download, remove the file above.
Go back to the Homebrew formula and change the sha1 to reflect the 'Actual' sha1. Save your changes.
Run brew reinstall virtualhost.sh
again, it should work this time.
Push the virtualhost.sh-1.32 branch to your fork of Homebrew.
Switch back to the master branch on Homebrew: git checkout master
Submit a pull request to Homebrew.