feat: add create command to mpqcli and fix Node.js integration

This commit is contained in:
2025-02-27 00:43:04 -05:00
parent 5eace432d4
commit bc0210b0b9
2 changed files with 1 additions and 1 deletions

BIN
examples/test.mpq Normal file

Binary file not shown.

View File

@@ -126,7 +126,7 @@ class MPQTool {
const workingDir = path.dirname(absoluteDir);
// Create the MPQ in the directory's parent
const cmd = `${this.mpqcliPath} create -v ${version} "${dirName}"`;
const cmd = `${this.mpqcliPath} create "${dirName}" ${version === 2 ? '-v2' : ''}`;
execSync(cmd, {
encoding: 'utf8',
maxBuffer: 10 * 1024 * 1024, // 10MB buffer