0.16.12: standard project schematics (Create draws holograms from schematics/)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Fulldroper
2026-10-15 08:13:54 +03:00
co-authored by Claude Opus 5.5
parent eece418627
commit 5a345c2a52
9 changed files with 21 additions and 7 deletions
+2
View File
@@ -73,6 +73,8 @@ fs.rmSync(stage, { recursive: true, force: true });
fs.mkdirSync(path.join(stage, 'overrides'), { recursive: true });
fs.writeFileSync(path.join(stage, 'modrinth.index.json'), JSON.stringify(index, null, 2));
fs.cpSync(path.join(root, 'config'), path.join(stage, 'overrides', 'config'), { recursive: true });
// schematics/: the state's standard projects — Create draws a project's hologram from here (projects in the shop)
if (fs.existsSync(path.join(root, 'schematics'))) fs.cpSync(path.join(root, 'schematics'), path.join(stage, 'overrides', 'schematics'), { 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
+1 -1
View File
@@ -7,7 +7,7 @@ import crypto from 'crypto';
import { fileURLToPath } from 'url';
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
const INDEXED_DIRS = ['mods', 'config', 'defaultconfigs', 'kubejs'];
const INDEXED_DIRS = ['mods', 'config', 'defaultconfigs', 'kubejs', 'schematics'];
const sha256 = buf => crypto.createHash('sha256').update(buf).digest('hex');
// Hash what git will check out (LF), not what a Windows working copy may hold (CRLF).
const lf = buf => (buf.includes(0) ? buf : Buffer.from(buf.toString('utf8').replace(/\r\n/g, '\n'), 'utf8'));