diff --git a/index.toml b/index.toml index d45931a..8da758c 100644 --- a/index.toml +++ b/index.toml @@ -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" diff --git a/mods/createrp_client-0.1.0.jar b/mods/createrp_client-0.1.0.jar deleted file mode 100644 index e2ec6d6..0000000 Binary files a/mods/createrp_client-0.1.0.jar and /dev/null differ diff --git a/mods/createrp_client-0.2.0.jar b/mods/createrp_client-0.2.0.jar new file mode 100644 index 0000000..94ada1d Binary files /dev/null and b/mods/createrp_client-0.2.0.jar differ diff --git a/pack.toml b/pack.toml index 510e88f..3c084e2 100644 --- a/pack.toml +++ b/pack.toml @@ -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" diff --git a/tools/export-mrpack.mjs b/tools/export-mrpack.mjs index ee58328..e9f9ad7 100644 --- a/tools/export-mrpack.mjs +++ b/tools/export-mrpack.mjs @@ -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 });