Skip to content

linux autoupdate notification#870

Merged
mason-fish merged 4 commits intomasterfrom
855-linux_autoupdate_notify
Jun 12, 2020
Merged

linux autoupdate notification#870
mason-fish merged 4 commits intomasterfrom
855-linux_autoupdate_notify

Conversation

@mason-fish
Copy link
Contributor

fixes #855

See ^^ ticket for screenshot of current dialog box as well as implementation notes

Signed-off-by: Mason Fish [email protected]

Signed-off-by: Mason Fish <[email protected]>
@mason-fish mason-fish requested a review from a team June 10, 2020 19:33
Mason Fish added 3 commits June 10, 2020 13:44
Signed-off-by: Mason Fish <[email protected]>
Signed-off-by: Mason Fish <[email protected]>
@mason-fish
Copy link
Contributor Author

Just confirmed by setting package version to v0.9.0, building and running a release on linux:
image

"electron-log": "^4.1.1",
"extract-zip": "^1.6.7",
"fs-extra": "^7.0.0",
"got": "^10.7.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the last minor version before 11.0.0 which, generally, has breaking changes (though I didn't investigate if any applied to our pretty minimal use of this lib). My own use within this PR will also work for 10.6.0, I only bumped it bc it was "free" (no extra work needed) and keeps us a bit more up to date.

Copy link
Contributor

@jameskerr jameskerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linux auto updater now checks the mac url to see if the version is greater than or equal to the app.getVersion(). If so, we present a dialog box with a link to the new release.

Thanks Mason!

try {
const currentVersion = app.getVersion()
if (!semver.valid(currentVersion))
throw "Invalid current version format: " + currentVersion
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a blocker. When you throw just a string, the stacktrace and file info are not saved in the error. If you want any of those things, then you can `throw new Error("message"). Some debug tooling takes advantace of the extra meta information provided by the Error instance (chrome devtools, jest tests).

Here is a little more detail.
https://stackoverflow.com/a/57077203/3499804

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh this is good to know, thanks!

@mason-fish mason-fish merged commit c861a2a into master Jun 12, 2020
@mason-fish mason-fish deleted the 855-linux_autoupdate_notify branch June 12, 2020 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Brim version notification for Linux

2 participants