xfuture 1.0.1 → 1.0.3

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/index.js +2 -8
  2. package/package.json +2 -3
package/index.js CHANGED
@@ -2,16 +2,10 @@ let LVRTCEngineNativePath = "";
2
2
  let os = require("os");
3
3
  var isMac = true;
4
4
  if (os.platform() === "win32") {
5
- LVRTCEngineNativePath = "./sdk/x86/linkv_engine";
5
+ LVRTCEngineNativePath = "./package/win/xFuture";
6
6
  isMac = false;
7
7
  } else if (os.platform() === "darwin") {
8
- let arch = os.arch();
9
- if (arch == "arm64") {
10
- LVRTCEngineNativePath = "./sdk/mac_arm64/xFuture";
11
- }
12
- else {
13
- LVRTCEngineNativePath = "./sdk/mac/xFuture";
14
- }
8
+ LVRTCEngineNativePath = "./package/mac/xFuture"
15
9
  } else {
16
10
  throw ("Platform not supported")
17
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xfuture",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "electron vpn sdk",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,8 +13,7 @@
13
13
  "license": "ISC",
14
14
 
15
15
  "dependencies": {
16
- "electron": "v25.1.1",
17
- "mac": "^0.4.0"
16
+ "electron": "v25.1.1"
18
17
  },
19
18
  "devDependencies": {
20
19
  "@electron/rebuild": "^3.2.10"