diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-08-18 00:10:34 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-08-18 00:12:28 -0700 |
| commit | 591559558a699f64bc8252df5bb68390bcafa7c4 (patch) | |
| tree | 76ec27666a2333bf48ac552d4b908613101560b5 /meta.jq | |
| parent | 233183f4dc1121ec7c5ffef4d7ea8d98f6b2d281 (diff) | |
feat: parameterize directories
Diffstat (limited to 'meta.jq')
| -rw-r--r-- | meta.jq | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -24,17 +24,18 @@ def replace_placeholders: { "version_type": .type, "assets_index_name": .assets, - "assets_root": "assets", - "game_directory": "run", - "natives_directory": "natives", + + "assets_root": "${assets_directory}", + #"game_directory": "run", + #"natives_directory": "natives", "classpath": (. as $root | [ - .libraries[] | apply_optional | "libraries/" + .downloads.artifact.path - ] + ["versions/\($root.id)/client.jar"] | join(":")), + .libraries[] | apply_optional | "${libraries_directory}/" + .downloads.artifact.path + ] + ["${versions_directory}/\($root.id)/client.jar"] | join(":")), "clientid": "idfk", # log4j config path - "path": "versions/\(.id)/log4j.xml", + "path": "${versions_directory}/\(.id)/log4j.xml", "launcher_name": "mcsh", "launcher_version": "v0.1.0" |