Repository navigation
Tell the user when a new version is out - #126
Merged
Merged
Conversation
The app has no server of its own, so it learns of a new version from the repository's GitHub Releases, where every version is published. Once a day it reads the latest release, without signing in, and a newer version shows at the right of every window's status bar. Clicking it shows the version's release notes with Download, which opens the release page in the browser, Skip This Version and Later. A release page outside this repository's releases is never opened; the list of releases is, instead. Check for Updates… (the application menu on macOS, Help elsewhere) checks at once, even for a skipped version or with the daily check off, and says when the app is up to date or why the check failed. A daily check that fails says nothing and is tried again within the hour. Settings > General turns the daily check off, and says that only the latest version is asked for. Closes #125
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #125.
Polhem MD has no server of its own, so the app learns of a new version from this repository's GitHub Releases.
GET https://api.github.com/repos/polhem-dev/polhem-md/releases/latestwithout signing in. GitHub leaves out drafts and pre-releases. The time of the last answer is kept in the settings, so restarting does not ask again within the day. A failure says nothing and is tried again at the next hourly look.CHANGELOG.mdsection thatrelease.ymlpublishes), drawn withMarkdownViewer, and Download, Skip This Version and Later. Download opens the release page in the browser.html_urlonly when it is anhttps://github.com/polhem-dev/polhem-md/releases/…address on the default port. Otherwise the list of releases opens instead.Installing the update in place (Velopack or similar) is left for later, as the issue says.
Testing
dotnet build/dotnet test(Release): 629 passed, 3 skipped. New tests:AppVersionTests,ReleaseFeedTests,UpdateCheckTests.LocTests.NamesStandardAppMenuItemsnow counts the app's own application-menu items instead of assuming three, since the menu gains Check for Updates.