QuiltMC / qm-matcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quirky matcher for qm

prerequisites

In order to match, you must have deno, git and java installed.

In this tutorial we'll be matching from 1.18 to 1.19 as examples. Note that if you're not a team member and don't have push access to the QM repo, you'll need to fork it and clone your fork instead.

setup

  1. Before you start, make sure you've merged all pull requests marked with final-comment-period in the QM repo!
  2. Run deno task setup [your old version] [your new version]. For us, this means we'll run deno task setup 1.18 1.19.

You can also set up manually, see manual setup.

matching

  1. In both the old and new clones, run ./gradlew mapPerVersionMappingsJar.
    • If you're seeing a "Could not resolve all files for configuration :hashed" error, it means that the hashed publication is not yet released for the new minecraft version. This should normally happen automatically, but github will disable the automatic publishing if hashed has not seen activity in 60 days. In that case, go over to the check and publish action and reenable it. Manually trigger a run, and the hashed file should be available for your version in 2-3 minutes.
  2. In the new clone, run ./gradlew dropInvalidMappings.
  3. Run git add . and git commit -m "[your new version name]" to commit. For us, this is git commit -m "1.19".
  4. Return to your root folder and run deno task match [your old version] [your new version]. For us, this is deno task match 1.18 1.19.
  5. In the new clone, run ./gradlew dropInvalidMappings again.
  6. Run ./gradlew generatePackageInfoMappings to generate new package info files.
  7. Run ./gradlew build javadocJar to test your build.
  8. Run git add . and git commit -m "match [your new version name] to [your old version name]" to commit. For us, this is git commit -m "match 1.19 to 1.18".
  9. Run git push, and you're done!

manual setup

If the deno task fails, please report it and follow these steps to manually set up. You can also use this if you just don't trust the machines. We don't judge.

  1. Clone this repo. We'll be calling the folder you cloned it into our root folder.
  2. Enter your root folder.
  3. Clone QM with git clone https://github.com/quiltmc/quilt-mappings [your old version name]. For us, this means we'll have a QM clone in a directory named 1.18.
  4. Repeat, this time naming the clone after your new version.
  5. Go into your new version clone and update the MINECRAFT_VERSION constant in buildSrc/src/main/java/quilt/internal/Constants.java to match your current version.
  6. Still in the new version clone, run git checkout -b [your new version name] to create a new branch for the new version. (git checkout -b 1.19 for us)
  7. Return to your root folder. You're ready to start matching!

About


Languages

Language:JavaScript 50.9%Language:TypeScript 49.1%