mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 21:16:30 +02:00
Remove release-channel
This commit is contained in:
parent
9ef87bc0d3
commit
1cbc9d4a11
@ -169,8 +169,6 @@ func createModFile(modInfo modInfo, fileInfo modFileInfo, index *core.Index) err
|
|||||||
updateMap["curseforge"], err = cfUpdateData{
|
updateMap["curseforge"], err = cfUpdateData{
|
||||||
ProjectID: modInfo.ID,
|
ProjectID: modInfo.ID,
|
||||||
FileID: fileInfo.ID,
|
FileID: fileInfo.ID,
|
||||||
// TODO: determine update channel
|
|
||||||
ReleaseChannel: "beta",
|
|
||||||
}.ToMap()
|
}.ToMap()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -280,9 +278,8 @@ func matchGameVersions(mcVersion string, modMcVersions []string) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type cfUpdateData struct {
|
type cfUpdateData struct {
|
||||||
ProjectID int `mapstructure:"project-id"`
|
ProjectID int `mapstructure:"project-id"`
|
||||||
FileID int `mapstructure:"file-id"`
|
FileID int `mapstructure:"file-id"`
|
||||||
ReleaseChannel string `mapstructure:"release-channel"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u cfUpdateData) ToMap() (map[string]interface{}, error) {
|
func (u cfUpdateData) ToMap() (map[string]interface{}, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user