Expand description
In-app update checker.
On startup OmnySSH queries the GitHub Releases API for the latest version.
Depending on how the binary was installed it can either self-replace the
executable (manual / install.sh installs on Linux and macOS) or show the
package-manager command the user should run instead.
Structs§
- Update
Info - A newer release discovered by
check.
Enums§
- Install
Method - How the running binary was installed. Determines whether an in-app self-update is possible.
Functions§
- check
- Queries GitHub for the latest release. Returns
Someonly when a strictly newer version exists. Any network or parse error yieldsNone, so a failed check never disrupts startup. - perform_
update - Downloads the release archive for [
BUILD_TARGET], verifies its SHA-256 against the releaseSHA256SUMS, and replaces the running executable.