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:
co-authored by
Claude Opus 5.5
parent
eece418627
commit
5a345c2a52
@@ -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
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user