ModMenu icon indicating copy to clipboard operation
ModMenu copied to clipboard

Mod update checker

Open Madis0 opened this issue 5 years ago • 9 comments

  • Uses Curseforge API to check current mods' new releases for launched game version
  • Checks once per game session
  • If there are updates, show the Realms 🔷 icon on mod list button
  • Checks for stable releases by default, option to use beta/alpha too
  • "Update" badge on mods that have updates
  • A button "Update mod" on the mod detail view that directly links to latest JAR on Curseforge

Madis0 avatar Dec 08 '19 09:12 Madis0

To note:

  • Not all mods use curseforge
  • Nor all modders like curseforge

It would be beneficial to allow mods to specify their own location, or their own maven (MineLP/HDSkins/Mson all have one) for discovering updates.

Sollace avatar Dec 08 '19 18:12 Sollace

Idea, mod specifies an "update strategy" of which there are multiple builtin in their fabric.mod.json.

Maven:

{
    "custom": {
        "modMenu:updateStrategy": {
            "type": "maven",
            "mavenGroup": "com.example",
            "mavenArtifact": "mod"
        }
    }
}

CurseForge:

{
    "custom": {
        "modMenu:updateStrategy": {
            "type": "curseforge",
            "curseforgeSlug": "example"
        }
    }
}

GitHub Releases:

{
    "custom": {
        "modMenu:updateStrategy": {
            "type": "github",
            "githubRepo": "example/me"
        }
    }
}

versionRegExp is an optional property in modMenu:updateStrategy, ModMenu would determine the latest version by picking the latest version that matches this RegExp.

TheBrokenRail avatar Jun 08 '20 21:06 TheBrokenRail

versionRegExp would be useful for maven or github when the latest version might be for a different MC version, while curseforge could automatically check.

TheBrokenRail avatar Jun 08 '20 22:06 TheBrokenRail

This is out of scope for modmenu imo, though modmenu could provide hooks for other mods to do that.

shedaniel avatar Jun 09 '20 17:06 shedaniel

it only makes sense for mod menu to do this

paz avatar Jun 10 '20 01:06 paz

My proposal has been implemented in https://gitea.thebrokenrail.com/TheBrokenRail/ModUpdater.git and will be listed on CurseForge at https://www.curseforge.com/minecraft/mc-mods/modupdater when approved.

TheBrokenRail avatar Jun 24 '20 18:06 TheBrokenRail

Btw, Modrinth exists now, so that's one more source you (probably) have to add an option/api for...

I do actually have plans to add an update checker at some point, and it will likely be Modrinth exclusive.

Prospector avatar Feb 01 '21 09:02 Prospector

My proposal has been implemented in ModUpdater

There is another mod, even better than ModUpdater – ModManager (GitHub)

Felix14-v2 avatar Sep 18 '21 14:09 Felix14-v2