Skip to content

Create Forge VersionChecker files based on CurseForge or Modrinth data

License

Notifications You must be signed in to change notification settings

ModdingX/UpdateCheckerGenerator

Repository files navigation

UpdateCheckerGenerator

A tool to generate Forge Version Checker jsons based on the data on CurseForge or Modrinth.

It accepts the following options:

  • -p, --platform: Either curse or modrinth.
  • -c, --config: A file containing project ids to generate version checker jsons for. One project id per line. Comments start with #
  • -d, --dir, --directory: The output directory to generate the version checker in.
  • -f, --cache: A cache file to store changelogs and version data from files, to reduce amount of requests to the API.

The version of a file is discovered by downloading it and parsing its contents. CfUpdateChecker looks for version information in this order:

  • A META-INF/mods.toml file that contains exactly one mod and a version value that does not start with a dollar sign.
  • A mcmod.info file that contains exactly one mod and a version value that does not start with a dollar sign.
  • A META-INF/MANIFEST.MF file with the property Implementation-Version
  • A module-info.class file that defines a module that has a version value set.

About

Create Forge VersionChecker files based on CurseForge or Modrinth data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages