Automatically generate updates.json for Forge mods (#298)

* Automatically generate updates.json for Forge mods

https://api.modrinth.com/updates/{id}/forge_updates.json serves a minimal update JSON for the Forge update checker

Closes #281

* Authenticate update JSON requests

Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
ramidzkh
2022-02-20 07:09:09 +11:00
committed by GitHub
parent d128f3e14e
commit 7c80b61666
4 changed files with 83 additions and 1 deletions

View File

@@ -395,7 +395,7 @@ pub struct Dependency {
pub dependency_type: DependencyType,
}
#[derive(Serialize, Deserialize, Clone)]
#[derive(Serialize, Deserialize, Clone, Eq, PartialEq)]
#[serde(rename_all = "lowercase")]
pub enum VersionType {
Release,