Skip to main content

Module update

Module update 

Source
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§

UpdateInfo
A newer release discovered by check.

Enums§

InstallMethod
How the running binary was installed. Determines whether an in-app self-update is possible.

Functions§

check
Queries GitHub for the latest release. Returns Some only when a strictly newer version exists. Any network or parse error yields None, so a failed check never disrupts startup.
perform_update
Downloads the release archive for [BUILD_TARGET], verifies its SHA-256 against the release SHA256SUMS, and replaces the running executable.