Skip to content

Commit

Permalink
fixed self-update
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruvDh committed Jan 21, 2024
1 parent 57ce2c0 commit dbca1cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 181 deletions.
170 changes: 0 additions & 170 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@ serde = { version = "1.0.195", features = ["derive"] }
serde_json = "1.0.111"
tabled = "0.10.0"
rhai = { version = "1.16.3", features = ["metadata", "decimal", "sync"] }
self_update = { version = "0.39.0", features = [
"rustls",
"archive-tar",
"archive-zip",
"compression-flate2",
"compression-zip-deflate",
"compression-zip-bzip2",
] }
self_update = { version = "0.39.0", features = ["rustls"] }
typed-builder = "0.18.1"
postgrest = "1.6.0"
reqwest = { version = "0.11.23", features = ["json", "rustls-tls"] }
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ use zip_extensions::zip_create_from_directory;

/// Updates binary based on github releases
fn update() -> Result<()> {
let status = self_update::backends::github::Update::configure()
self_update::backends::github::Update::configure()
.repo_owner("dhruvdh")
.repo_name("umm")
.bin_name((format!("umm-{}", self_update::get_target())).as_str())
.bin_name("umm")
.no_confirm(true)
.target_version_tag("spring_24")
.show_download_progress(true)
Expand All @@ -50,7 +50,7 @@ fn update() -> Result<()> {
.build()?
.update()?;

eprintln!("Update status: `{}`!", status.version());
eprintln!("Update done!");
Ok(())
}

Expand Down

0 comments on commit dbca1cc

Please sign in to comment.