createrp_client 0.2.0; mrpack export carries local jars and config/createrp/pack-version.txt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Fulldroper
2026-10-14 10:05:46 +03:00
co-authored by Claude Opus 5.5
parent 6210aa03e5
commit 91fbf75819
5 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -924,8 +924,8 @@ hash = "b6a535a801939a78f255203f7b28319773becca20cc88348f8764f4078816300"
metafile = true
[[files]]
file = "mods/createrp_client-0.1.0.jar"
hash = "0acd7187a5003781c6210e3d73407118a728853d20ec5a314f73f35668de8ae7"
file = "mods/createrp_client-0.2.0.jar"
hash = "954081831f610439b3058da1327daf090b9d024aad7a3337f463e20d9230a980"
[[files]]
file = "mods/cubes-without-borders.pw.toml"
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0"
[index]
file = "index.toml"
hash-format = "sha256"
hash = "da0b0e32912635b0a12f9b92cb57dbd2e4601a600015bd5a011dc63aa9f9bfe5"
hash = "a997b1b64931f20b8e2d007eefa881f09722bd92d010e8fed076d2033298b38e"
[versions]
minecraft = "1.21.1"
+7
View File
@@ -62,6 +62,13 @@ fs.writeFileSync(path.join(stage, 'modrinth.index.json'), JSON.stringify(index,
fs.cpSync(path.join(root, 'config'), path.join(stage, 'overrides', 'config'), { recursive: true });
// kubejs/assets: always-on client resources (CC terminal font with Cyrillic)
if (fs.existsSync(path.join(root, 'kubejs'))) fs.cpSync(path.join(root, 'kubejs'), path.join(stage, 'overrides', 'kubejs'), { recursive: true });
// jars that live in the pack itself (our createrp_client mod) are not on Modrinth: they go in as overrides
const localJars = fs.readdirSync(path.join(root, 'mods')).filter(f => f.endsWith('.jar'));
if (localJars.length) fs.mkdirSync(path.join(stage, 'overrides', 'mods'), { recursive: true });
for (const j of localJars) fs.copyFileSync(path.join(root, 'mods', j), path.join(stage, 'overrides', 'mods', j));
// the version the game has, for createrp_client's updater (it compares it with the latest release)
fs.mkdirSync(path.join(stage, 'overrides', 'config', 'createrp'), { recursive: true });
fs.writeFileSync(path.join(stage, 'overrides', 'config', 'createrp', 'pack-version.txt'), packVersion);
const out = path.join(root, 'dist', `CreateRP-${packVersion}.mrpack`);
fs.rmSync(out, { force: true });