Skip to content

Commit

Permalink
chore: helper scripts for updating chocolatey (#1360)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
  • Loading branch information
hacdias authored Mar 12, 2020
1 parent e900de4 commit 167751c
Show file tree
Hide file tree
Showing 4 changed files with 523 additions and 95 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,15 @@ Other languages are periodically pulled from [Transifex](https://www.transifex.c
3. Run `node pkgs/macos/notarize-cli.js ./IPFS-Desktop-A.B.C.dmg`
- Update [Homebrew Cask](https://github.com/Homebrew/homebrew-cask/blob/master/CONTRIBUTING.md#updating-a-cask).
- Update Chocolatey package:
1. Update the version number on [ipfs-desktop.nuspec](./pkgs/chocolatey/ipfs-desktop.nuspec#L5)
2. Update the binary URL on [chocolateyinstall.ps1](./pkgs/chocolatey/tools/chocolateyinstall.ps1#L3)
3. Update the SHA256 of the binary on [chocolateyinstall.ps1](./pkgs/chocolatey/tools/chocolateyinstall.ps1#L4)
4. `cd pkgs/chocolatey`
5. `choco pack` - generates a `.nupkg` file.
6. `choco push $generated_nupkg --key $your_api_key --source https://push.chocolatey.org`
1. Wait for the artefact on the [releases page](https://github.com/ipfs-shipyard/ipfs-desktop/releases)
2. Run `node pkgs/chocolatey/update.js $version` - this script will update a few files:
1. Update the version number on [ipfs-desktop.nuspec](./pkgs/chocolatey/ipfs-desktop.nuspec#L5)
2. Update the binary URL on [chocolateyinstall.ps1](./pkgs/chocolatey/tools/chocolateyinstall.ps1#L3)
3. Update the SHA256 of the binary on [chocolateyinstall.ps1](./pkgs/chocolatey/tools/chocolateyinstall.ps1#L4)
3. Git commit with `pubchoco` in the commit message. Then CI should:
1. `cd pkgs/chocolatey`
2. `choco pack` - generates a `.nupkg` file.
3. `choco push $generated_nupkg --key $api --source https://push.chocolatey.org`
- To start work on the next version, bump the version in the package.json and repeat theses steps.

## Contribute
Expand Down
Loading

0 comments on commit 167751c

Please sign in to comment.