Prepare: require only this platform's libraries; accept republished 26.3 manifests
lab.prepare imported every client library in the version JSON, ignoring its OS rules, so a Linux install failed on the macOS-only java-objc-bridge the official launcher never downloads there. The rule evaluation moves from runtime.py into lab.py and one selector, client_library_artifacts, now serves preparation, the runtime and the model baking harness: OS rules as the launcher applies them, and the natives for this architecture (classifier suffixes, plain natives being the x64 build only when an ARM variant is listed). Required libraries are still checksummed and a missing one still errors. Mojang republished 26.3.json twice (702fe591, then 11f1aefe, the current one) with only assetIndex changed: non-English translations, same jars and libraries. The lock pins the current file and accepts both earlier ones; preparation takes the launcher's copy so it matches the asset index installed with it, and an unknown republish errors clearly. Fixes #41 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -74,7 +74,7 @@ def verify_artifacts():
|
||||
"""Authenticate against the lock and the bundled checksums, not generated reports."""
|
||||
lock, directory = lab.config()
|
||||
manifest_path = directory / "manifest.json"
|
||||
if lab.digest(manifest_path, "sha1") != lock["minecraft"]["manifest_sha1"]:
|
||||
if not lab.manifest_accepted(lock, lab.digest(manifest_path, "sha1")):
|
||||
raise ValueError("Manifest checksum changed; run tools/lab.py prepare")
|
||||
manifest = json.loads(manifest_path.read_text())
|
||||
if manifest["id"] != lock["minecraft"]["version"]:
|
||||
|
||||
Reference in New Issue
Block a user