Skip to content

Commit

Permalink
docs: update chocolatey checklist (#1655)
Browse files Browse the repository at this point in the history
Automation set up on AppVeyor is broken, let's go with manual steps for now:
#1360 (comment)

License: MIT
Signed-off-by: Marcin Rataj <[email protected]>
  • Loading branch information
lidel authored Sep 28, 2020
1 parent d1ab391 commit 05ee3b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,19 @@ Other languages are periodically pulled from [Transifex](https://www.transifex.c
- Once a release is published, users should receive the app update. See: https://www.electron.build/auto-update.
- The `latest.yml, latest-mac.yml, latest-linux.yml` files on the release are used by the app to determine when an app update is available.
- Update links and badges in `README` to point to the new version (`A.B.C`)
- Update [Homebrew Cask](https://github.com/Homebrew/homebrew-cask/blob/master/CONTRIBUTING.md#updating-a-cask).
- Update Chocolatey package:
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`
- Update selected package managers
- Update [Snap](https://snapcraft.io/ipfs-desktop).
- Update [Homebrew Cask](https://github.com/Homebrew/homebrew-cask/blob/master/CONTRIBUTING.md#updating-a-cask).
- Update Chocolatey package:
1. Wait for the artefact on the [releases page](https://github.com/ipfs-shipyard/ipfs-desktop/releases)
2. Run `node pkgs/chocolatey/update.js A.B.C` - this script will update version to `A.B.C` in 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. Next, create `.nupkg` file and publish it:
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`

### Manual notarization (Fallback in-case CI is not doing it correctly)
Expand Down
2 changes: 1 addition & 1 deletion pkgs/chocolatey/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ function hashStream (stream) {

await fs.outputFile(script, scriptContent)
console.log('Done!')
console.log('Please commit the changes and include "[pubchoco]" on the commit message.')
console.log('Please commit the changes, generate new .nupkg and push it to chocolatey.org')
})()

0 comments on commit 05ee3b4

Please sign in to comment.