ee-core 1.2.7-beta.3 → 1.2.7-beta.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils/index.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ee-core",
3
- "version": "1.2.7-beta.3",
3
+ "version": "1.2.7-beta.4",
4
4
  "description": "ee core",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/utils/index.js CHANGED
@@ -7,6 +7,7 @@ const convert = require('koa-convert');
7
7
  const is = require('is-type-of');
8
8
  const co = require('co');
9
9
  const utility = require('utility');
10
+ const eis = require('electron-is');
10
11
 
11
12
  /**
12
13
  * 创建文件夹
@@ -151,7 +152,7 @@ exports.getExtraResourcesDir = function() {
151
152
  // 打包后 execDir为 应用程序 exe\dmg\dep软件所在目录;打包前该值是项目根目录
152
153
  // windows和MacOs不一样
153
154
  dir = path.join(execDir, "resources", "extraResources");
154
- if (is.macOS()) {
155
+ if (eis.macOS()) {
155
156
  dir = path.join(execDir, "..", "Resources", "extraResources");
156
157
  }
157
158
  } else {