modrinth mod dl and update version num (oops)

This commit is contained in:
2026-07-29 15:29:21 -04:00
parent 4f802ca298
commit bdb7386480
8 changed files with 84 additions and 11 deletions

View File

@@ -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,
}