hunter-open-sdk 2.0.0-beta.29 → 2.0.0-beta.30

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.
@@ -22,7 +22,8 @@ const exec = childProcess.exec;
22
22
  const options = {
23
23
  name: 'Electron'
24
24
  };
25
- const msiStr = 'AppleMobileDeviceService';
25
+ const AppleMobileDeviceService = 'AppleMobileDeviceService';
26
+ const AppleMobileDeviceProcess = 'AppleMobileDeviceProcess';
26
27
  // const reddirPath = 'C:/Program Files (x86)/Common Files/Apple/Apple Application Support'
27
28
  const cmdStr = process.platform === 'win32' ? 'tasklist' : 'ps aux';
28
29
  const CACHE_PATH = (0, _utils.isDev)() ? path.join(process.cwd(), './cache') : path.join(process.resourcesPath, './cache');
@@ -49,7 +50,7 @@ const checkProcess = () => {
49
50
  let processMessage = line.trim().split(/\s+/);
50
51
  let processName = processMessage[0];
51
52
  // console.log('names.....', processName)
52
- if (processName.indexOf(msiStr) > -1) {
53
+ if (processName.indexOf(AppleMobileDeviceService) > -1 || processName.indexOf(AppleMobileDeviceProcess) > -1) {
53
54
  hasRroess = true;
54
55
  }
55
56
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hunter-open-sdk",
3
- "version": "2.0.0-beta.29",
3
+ "version": "2.0.0-beta.30",
4
4
  "description": "采货侠SaaS版本桌面端sdk",
5
5
  "scripts": {
6
6
  "start": "zz dev",