modrinth mod dl and update version num (oops)
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
use std::path::Path;
|
||||
|
||||
use serde::Deserialize;
|
||||
|
||||
pub const USER_AGENT: &str = concat!("owenthepuppy/uml/", env!("CARGO_PKG_VERSION"));
|
||||
|
||||
pub fn is_valid_name(name: &str) -> bool {
|
||||
let mut components = Path::new(name).components();
|
||||
matches!(
|
||||
@@ -17,3 +21,7 @@ pub fn open_path(path: &Path) -> anyhow::Result<()> {
|
||||
std::process::Command::new("xdg-open").arg(path).spawn()?;
|
||||
Ok(())
|
||||
}
|
||||
#[derive(Deserialize, Clone)]
|
||||
pub struct Hashes {
|
||||
pub sha512: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user