Expand description
Whether a release newer than the one running is out.
Asked once each time Avestruz runs, when it starts, and only if the settings say so: the project’s latest release on GitHub, which is never a draft nor a pre-release, against the version this was built as. The one thing sent is the request itself, which says which version asks; nothing of the account, and nothing that was read.
A check that fails is no news, and shows nothing: there is another the next time Avestruz starts.
flowchart TD
start["Avestruz starts, or the setting is turned on"] --> asked{"Was it asked already, this run?"}
asked -->|"yes"| nothing["Nothing"]
asked -->|"no"| github["GitHub is asked for the project's latest release"]
github --> newer{"Is its version higher than the one running?"}
newer -->|"yes"| banner["A line over what the popup shows says so, with a link to what is new, until it is dismissed"]
newer -->|"no, or it could not be asked, or its tag is no version"| nothing
off["The setting is turned off"] --> gone["The line goes, and nothing is asked"]Where it is asked from, and what the answer does, is in
crate::handlers::settings.
Structs§
- Available
Update - A release newer than the one running.
- Release 🔒
- What is read of how GitHub describes a release.
Constants§
- ANSWER_
MAX_ 🔒BYTES - How much of GitHub’s answer is read at the most: a release with all its files and notes is a fraction of this.
Functions§
- check
- The project’s latest release, if it is newer than what is running.
- latest_
release_ 🔒url - Where GitHub says what the latest release is of the project whose
source is at
repository.Noneif that is not on GitHub. - newer_
than 🔒 release, if its version is higher thanrunning, each number compared as a number.Noneif either is no version to compare.- version_
numbers 🔒 - A version as its three numbers, with or without a leading
v. Anything else is no version to compare: two numbers, four, or one with something after it, as a pre-release has.