mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 13:06:30 +02:00
Add description field for Modrinth exports
This commit is contained in:
parent
60c08b93f3
commit
ce49820ef5
11
core/pack.go
11
core/pack.go
@ -15,11 +15,12 @@ import (
|
|||||||
|
|
||||||
// Pack stores the modpack metadata, usually in pack.toml
|
// Pack stores the modpack metadata, usually in pack.toml
|
||||||
type Pack struct {
|
type Pack struct {
|
||||||
Name string `toml:"name"`
|
Name string `toml:"name"`
|
||||||
Author string `toml:"author,omitempty"`
|
Author string `toml:"author,omitempty"`
|
||||||
Version string `toml:"version,omitempty"`
|
Version string `toml:"version,omitempty"`
|
||||||
PackFormat string `toml:"pack-format"`
|
Description string `toml:"description,omitempty"`
|
||||||
Index struct {
|
PackFormat string `toml:"pack-format"`
|
||||||
|
Index struct {
|
||||||
// Path is stored in forward slash format relative to pack.toml
|
// Path is stored in forward slash format relative to pack.toml
|
||||||
File string `toml:"file"`
|
File string `toml:"file"`
|
||||||
HashFormat string `toml:"hash-format"`
|
HashFormat string `toml:"hash-format"`
|
||||||
|
@ -165,6 +165,7 @@ var exportCmd = &cobra.Command{
|
|||||||
Game: "minecraft",
|
Game: "minecraft",
|
||||||
VersionID: pack.Version,
|
VersionID: pack.Version,
|
||||||
Name: pack.Name,
|
Name: pack.Name,
|
||||||
|
Summary: pack.Description,
|
||||||
Files: manifestFiles,
|
Files: manifestFiles,
|
||||||
Dependencies: dependencies,
|
Dependencies: dependencies,
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
package modrinth
|
package modrinth
|
||||||
|
|
||||||
type Pack struct {
|
type Pack struct {
|
||||||
FormatVersion int `json:"formatVersion"`
|
FormatVersion int `json:"formatVersion"`
|
||||||
Game string `json:"game"`
|
Game string `json:"game"`
|
||||||
VersionID string `json:"versionId"`
|
VersionID string `json:"versionId"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
// TODO: implement Summary
|
Summary string `json:"summary,omitempty"`
|
||||||
// Summary string `json:"summary"`
|
Files []PackFile `json:"files"`
|
||||||
Files []PackFile `json:"files"`
|
Dependencies map[string]string `json:"dependencies"`
|
||||||
Dependencies map[string]string `json:"dependencies"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type PackFile struct {
|
type PackFile struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user