ee-core 1.2.5 → 1.2.7-beta.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/bin/tools.js CHANGED
@@ -1,11 +1,11 @@
1
- 'use strict';
1
+ #!/usr/bin/env node
2
2
 
3
3
  const codeCompress = require('../tools/codeCompress');
4
4
  const replaceDist = require('../tools/replaceDist');
5
5
 
6
6
  // argv
7
7
  const args = process.argv;
8
- //console.log('[ee-core] args:', args);
8
+ console.log('[ee-core] args:', args);
9
9
  const cmd = args[2];
10
10
  console.log('[ee-core] cmd:', cmd);
11
11
 
@@ -234,7 +234,9 @@ module.exports = appInfo => {
234
234
  /**
235
235
  * 硬件加速
236
236
  */
237
- config.hardGpu = false;
237
+ config.hardGpu = {
238
+ enable: false
239
+ };
238
240
 
239
241
  /**
240
242
  * loading页(废弃)
package/lib/eeApp.js CHANGED
@@ -86,7 +86,7 @@ class EeApp extends BaseApp {
86
86
  self.electron.extra.closeWindow = true;
87
87
  })
88
88
 
89
- if (this.config.hardGpu == false) {
89
+ if (this.config.hardGpu.enable == false) {
90
90
  app.disableHardwareAcceleration();
91
91
  }
92
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ee-core",
3
- "version": "1.2.5",
3
+ "version": "1.2.7-beta.1",
4
4
  "description": "ee core",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "author": "",
10
10
  "license": "ISC",
11
11
  "bin": {
12
- "ee-cli": "bin/tools.js"
12
+ "ee-core": "./bin/tools.js"
13
13
  },
14
14
  "dependencies": {
15
15
  "agentkeepalive": "^4.2.0",
@@ -25,7 +25,9 @@ const fsPro = require('fs-extra');
25
25
  distDir = tmpArgv.substring(11)
26
26
  }
27
27
  }
28
-
28
+ console.log('tmpArgv:', tmpArgv);
29
+ console.log('distDir:', distDir);
30
+ return;
29
31
  const fileExist = (filePath) => {
30
32
  try {
31
33
  return fs.statSync(filePath).isFile();