diff --git a/README.md b/README.md index 8b828d68f..a4626bab0 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/pkgs/chocolatey/update.js b/pkgs/chocolatey/update.js index b91523a65..0e5109f49 100644 --- a/pkgs/chocolatey/update.js +++ b/pkgs/chocolatey/update.js @@ -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') })()