A small library to update rust binaries from GitHub releases.
GPL-3.0 License
let mut updater_builder = GithubUpdater::builder()
.with_initialized_reqwest_client()
.with_download_path(&"~/downloads")
.with_repository_infos("repository-owner", "repository-name")
.with_app_name("app-name")
.with_rust_target("i686-unknown-linux-musl")
.with_release_file_name_pattern("{app_name}-{app_version}-{rust_target}")
.with_file_extension("exe")
.with_github_token("")
.build()
.unwrap();
updater_builder.update_if_needed().await?;
updater_builder.force_update().await?;