Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.94 KB

RELEASE.md

File metadata and controls

43 lines (28 loc) · 1.94 KB

How to make a new release of virtualhost.sh

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.

  1. Increase the version number in virtualhost.sh (the version variable).
  2. Change the version number in the virtualhost.sh header.
  3. Update CHANGES.md.
  4. (optional) Tag the new release manually with git tag 1.32 and push the tag with git push --tags
  5. Make a new release on GitHub and add the changelog notes there.
  6. Submit the new release to Homebrew (below).

Submit the new release to Homebrew

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.