Skip to content

Commit

Permalink
feat: upgrade ubi
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 13, 2025
1 parent 6cedf5e commit cb6dac1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ thiserror = "2"
tokio = { version = "1", features = ["io-std", "rt", "time"] }
toml = { version = "0.8", features = ["parse"] }
toml_edit = { version = "0.22", features = ["parse"] }
ubi = { version = "0.3", default-features = false }
ubi = { version = "0.4", default-features = false }
url = "2"
usage-lib = { version = "2", features = ["clap", "docs"] }
versions = { version = "6", features = ["serde"] }
Expand Down
9 changes: 5 additions & 4 deletions src/backend/ubi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ impl Backend for UbiBackend {

let mut builder = UbiBuilder::new()
.project(&name)
.install_dir(path_with_bin.clone());
.install_dir(path_with_bin.clone())
.extract_all();

if let Some(token) = &*GITHUB_TOKEN {
builder = builder.github_token(token);
Expand All @@ -103,9 +104,9 @@ impl Backend for UbiBackend {
builder = builder.tag(v);
}

if let Some(exe) = opts.get("exe") {
builder = builder.exe(exe);
}
// if let Some(exe) = opts.get("exe") {
// builder = builder.exe(exe);
// }
if let Some(matching) = opts.get("matching") {
builder = builder.matching(matching);
}
Expand Down

0 comments on commit cb6dac1

Please sign in to comment.