Below are helpful notes for developers hacking on or releasing new versions of IPFS Desktop.
Before cutting a new release of IPFS Desktop, please go through the following process:
Manually test a few things that don't transfer well to automated testing:
- Mac/Windows/Linux: Confirm that "Take Screenshot" under the menubar/system tray menu works as expected for both single- and multi-monitor setups:
- File(s) import correctly
- Correct link is copied to clipboard
- Mac only: Drag/drop onto menubar icon behaves as expected when dragging one file, several files, and a combination of files/folders:
- File(s) import correctly
- Correct link is copied to clipboard
- Windows only: Right-click on a file and "Add to IPFS" from context menu works as expected:
- File(s) import correctly
- Correct link is copied to clipboard
- Mac/Windows: Confirm that OS-wide protocol handler was registered by opening
ipfs://bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi
in a user agent without IPFS Companion
- Fetch new translations from Transifex:
tx pull -af
. - Commit the changes.
- Update the version using
npm version [major|minor|patch]
(it will create a new tagvA.B.C
, note it down) - Publish local changes and the tag to the GitHub repo:
git push && git push origin vA.B.C
. - Wait for the CI to upload the binaries to the draft release (a new one will be created if you haven't drafted one).
- Publish a release draft.
- Once a release is published, users should receive the app update (see https://www.electron.build/auto-update for details).
- 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 all links and badges in
README.md
to point to the new version (A.B.C
). - Update
CHANGELOG.md
with details from release/release draft. - Update selected package managers:
- Wait for CI to finish and confirm that it updated Snap, and is at least pending review on Chocolatey.
- Update the Homebrew cask.
- To start work on the next version, bump the version in
package.json
.
These steps are only needed as a fallback if CI is not correctly notarizing the .dmg
file. For context, see #1365.
- Download the
.dmg
fromhttps://github.com/ipfs-shipyard/ipfs-desktop/releases/vA.B.C
. - Ensure
APPLEID
andAPPLEIDPASS
are set either as environment variables or entries in.env
file. These need to belong to the same org as the certificate used for signing. - Run
node pkgs/macos/notarize-cli.js ./IPFS-Desktop-A.B.C.dmg
. - Debug errors by calling the tool directly:
xcrun altool --notarize-app -f /path/to/IPFS-Desktop-0.X.0.dmg --primary-bundle-id io.ipfs.desktop -u XXX-from-vault-XXX -p XXX-app-specific-password-from-vault-XXX
; also, see the long list of hoops Apple may ask you to jump through.