ee-bin 4.1.6-beta.1 → 4.1.7

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/index.js CHANGED
@@ -97,6 +97,9 @@ program
97
97
  .description('Generate logo')
98
98
  .option('-i, --input <file>', 'image file default /public/images/logo.png')
99
99
  .option('-o, --output <folder>', 'output directory default /build/icons/')
100
+ .option('-s, --size <flag>', 'generate size default 16,32,64,256,512')
101
+ .option('-c, --clear', 'clear output directory first')
102
+ .option('-img, --images <flag>', 'Win window icon/tray image generation path default /public/images/')
100
103
  .action(function() {
101
104
  const iconGen = require('./tools/iconGen');
102
105
  iconGen.run();
package/lib/utils.js CHANGED
@@ -192,7 +192,7 @@ function getPlatform(delimiter = "_", isDiffArch = false) {
192
192
  }
193
193
 
194
194
  // Get cmd parameter by name
195
- function getArgumentByName(args, name) {
195
+ function getArgumentByName(name, args) {
196
196
  if (!args) {
197
197
  args = process.argv;
198
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ee-bin",
3
- "version": "4.1.6-beta.1",
3
+ "version": "4.1.7",
4
4
  "description": "ee bin",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tools/serve.js CHANGED
@@ -91,7 +91,7 @@ class ServeProcess {
91
91
  const electronConfig = binCmdConfig.electron;
92
92
 
93
93
  // Debugging source code
94
- const debugging = getArgumentByName(electronConfig.args, 'debuger') == 'true'? true : false;
94
+ const debugging = getArgumentByName('debuger', electronConfig.args) == 'true'? true : false;
95
95
  this._switchPkgMain(debugging);
96
96
 
97
97
  // watche electron main code