-
Notifications
You must be signed in to change notification settings - Fork 124
[DEV] Testing upgrades
Mitchell Hentges edited this page Oct 8, 2018
·
1 revision
James has a built-in upgrader, which means users are less likely to be manually watching for newer releases. So, we should be confident that we don't release a version of James that no longer updates properly.
Three platforms should be tested:
- Linux (testable by @mitchhentges)
- Mac (testable by @nerdbeere and @mitchhentges)
- Windows (testable by @tomitm and @mitchhentges)
- Install an HTTP file server like
serve
- Create a "future" build of James to upgrade to
- Update
version
inpackage.json
(bump by two versions) -
npm run dist-upgrade-test
(ordist-upgrade-test:win64
on Windows) - Copy then contents of
binaries
to a new folder (outside ofjames
repository) - Within the new folder, run an HTTP file server on port
9000
(serve -p 9000
)
- Update
- Create a "future" build of James to upgrade from
- Update
version
inpackage.json
(bump back to the expected version of the new release) -
npm run dist-upgrade-test
(ordist-upgrade-test:win64
on Windows)
- Update
- Run the correct binary in
binaries
- Ensure that the status is shown properly in the bottom-right of James, and that the update completes correctly