Implement Modrinth pack exporting (fixes #34)

This commit is contained in:
comp500
2021-12-28 22:03:22 +00:00
parent 4abf3340a1
commit 60c08b93f3
7 changed files with 358 additions and 21 deletions

22
modrinth/pack.go Normal file
View File

@@ -0,0 +1,22 @@
package modrinth
type Pack struct {
FormatVersion int `json:"formatVersion"`
Game string `json:"game"`
VersionID string `json:"versionId"`
Name string `json:"name"`
// TODO: implement Summary
// Summary string `json:"summary"`
Files []PackFile `json:"files"`
Dependencies map[string]string `json:"dependencies"`
}
type PackFile struct {
Path string `json:"path"`
Hashes map[string]string `json:"hashes"`
Env *struct {
Client string `json:"client"`
Server string `json:"server"`
} `json:"env"`
Downloads []string `json:"downloads"`
}