Build from the user's own copy of the game instead of downloading it

Horizon no longer fetches anything of Minecraft from Mojang's servers. The
client jar, version JSON, libraries and assets come from the user's official
launcher install, and the server jar is one they downloaded themselves
(--server-jar or HORIZON_SERVER_JAR). Every file is checked against checksums
pinned in research-lock.json, and the prepared .local/ layout is byte-identical
to the old downloads, so the harnesses and the native client are unchanged.

CI keeps the offline checks on GitHub's runners; the vanilla comparisons and
the mod build need the game, so they move to a manual job on a self-hosted
runner that holds the maintainer's own copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-12 02:00:18 +02:00
parent 76030a65cf
commit 37898e856b
12 changed files with 301 additions and 173 deletions
+4 -2
View File
@@ -141,10 +141,12 @@ def prepare_worldgen(root, jars, local, libraries=None):
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--prepare', action='store_true', help='Fetch pinned reference artifacts first')
parser.add_argument('--prepare', action='store_true',
help='Import the pinned game files from your own copy first')
lab.add_game_arguments(parser)
args = parser.parse_args()
if args.prepare:
lab.prepare()
lab.prepare(args.minecraft_dir, args.server_jar)
lock, jars, libraries = base.verify_artifacts()
root = lab.LOCAL / 'horizon-client' / lock['minecraft']['version']
root.mkdir(parents=True, exist_ok=True)