mirror of
https://github.com/araxiaonline/mpq-tools-osx.git
synced 2026-06-13 03:12:25 -04:00
feat: add create command to mpqcli and fix Node.js integration
This commit is contained in:
BIN
examples/test.mpq
Normal file
BIN
examples/test.mpq
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user