Skip to content
Merged
Show file tree
Hide file tree
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
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')
})()