Skip to content

Commit

Permalink
make sure user agents uses current version
Browse files Browse the repository at this point in the history
  • Loading branch information
josueBarretogit committed Aug 9, 2024
1 parent c644fb9 commit 0cb91e8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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 @@ -24,7 +24,7 @@ crossterm = { version = "0.27.0", features = ["event-stream"] }
directories = "5.0.1"
image = "0.25.1"
ratatui = { version = "0.27.0", features = ["all-widgets", "palette", "unstable-widget-ref"] }
ratatui-image = { git = "https://github.com/josueBarretogit/ratatui-image", features = ["rustix"]}
ratatui-image = { git = "https://github.com/josueBarretogit/ratatui-image", version = "1.0.2", features = ["rustix"]}
reqwest = { version = "0.12.4", features = ["json"] }
serde = { version = "1.0.203", features = ["derive"] }
tokio = { version = "1.38.0", features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ https://github.com/user-attachments/assets/64880a98-74c8-4656-8cf8-2c1daf5375d2
### Using cargo

```shell
cargo install manga-tui
cargo install manga-tui --locked
```

### AUR
Expand Down
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
None => PREFERRED_LANGUAGE.set(Languages::default()).unwrap(),
}


let user_agent = format!(
"manga-tui/0.1.0 ({}/{}/{})",
"manga-tui/{} ({}/{}/{})",
env!("CARGO_PKG_VERSION"),
std::env::consts::FAMILY,
std::env::consts::OS,
std::env::consts::ARCH
Expand Down

0 comments on commit 0cb91e8

Please sign in to comment.