Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions docs/maintainers/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,14 @@ and save the release as a draft while you upload the binary packages.

## Homebrew

After the release, you can update homebrew formula.
After the release, update homebrew formula.
You need macOS to do it.

On macOS:
There are 2 homebrew formulas: main and preview.

### Main

Update it on stable releases.

1. Make sure that you have [homebrew cask](https://caskroom.github.io/).
1. `brew update`
Expand All @@ -219,5 +224,21 @@ On macOS:
1. Update `checkpoint` value. To do that run `brew cask _appcast_checkpoint --calculate 'https://github.com/PowerShell/PowerShell/releases.atom'`
1. `brew cask style --fix ./powershell.rb`, make sure there are no errors
1. `brew cask audit --download ./powershell.rb`, make sure there are no errors
1. `brew cask reinstall powershell`, make sure that powershell was updates successfully
1. `brew cask upgrade powershell`, make sure that powershell was updates successfully
1. Commit your changes, send a PR to [homebrew-cask](https://github.com/caskroom/homebrew-cask)

### Preview

Update it on preview releases.

1. Add [homebrew cask versions](https://github.com/Homebrew/homebrew-cask-versions): `brew tap homebrew/cask-versions`
1. `brew update`
1. `cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions/Casks`
1. Edit `./powershell-preview.rb`:
1. Update `version`
1. Update `sha256` to the checksum of produced `.pkg` (note lower-case string for the consistent style)
1. Update `checkpoint` value. To do that run `brew cask _appcast_checkpoint --calculate 'https://github.com/PowerShell/PowerShell/releases.atom'`
1. `brew cask style --fix ./powershell-preview.rb`, make sure there are no errors
1. `brew cask audit --download ./powershell-preview.rb`, make sure there are no errors
1. `brew cask upgrade powershell-preview`, make sure that powershell was updates successfully
1. Commit your changes, send a PR to [homebrew-cask-versions](https://github.com/Homebrew/homebrew-cask-versions)