@ovipakla/gm-cli 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +4 -3
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -87,7 +87,7 @@ function getPSMonitorRAMCommand(processName, interval, name) {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
const program = new Command()
|
|
90
|
-
.version('2.0.
|
|
90
|
+
.version('2.0.1', '-v, --version, ', 'output the current version');
|
|
91
91
|
|
|
92
92
|
const config = program
|
|
93
93
|
.command('config')
|
|
@@ -346,6 +346,7 @@ program
|
|
|
346
346
|
clean: 'false',
|
|
347
347
|
launch: 'PackageZip',
|
|
348
348
|
name: packageGM.data.name,
|
|
349
|
+
zip: packageGM.data.name,
|
|
349
350
|
yyp: path.basename(packageGM.data.main).replaceAll("\\", "/"),
|
|
350
351
|
path: path.join(path.dirname(packageGM.file), path.dirname(packageGM.data.main)).replaceAll("\\", "/"),
|
|
351
352
|
};
|
|
@@ -368,7 +369,7 @@ program
|
|
|
368
369
|
}
|
|
369
370
|
|
|
370
371
|
if (options.name !== undefined && typeof options.name === 'string' && options.name.trim() !== '') {
|
|
371
|
-
config.
|
|
372
|
+
config.zip = options.name;
|
|
372
373
|
}
|
|
373
374
|
|
|
374
375
|
const shellScript = `#!/bin/bash
|
|
@@ -448,7 +449,7 @@ program
|
|
|
448
449
|
exit 1
|
|
449
450
|
fi
|
|
450
451
|
|
|
451
|
-
zip_name=${config.
|
|
452
|
+
zip_name=${config.zip}
|
|
452
453
|
echo $zip_name
|
|
453
454
|
if [ -z "$zip_name" ]; then
|
|
454
455
|
log_error "--name must be defined! exit 1"
|