plusui-native-builder 0.1.53 → 0.1.54

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 +2 -2
  2. package/src/index.js +10 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plusui-native-builder",
3
- "version": "0.1.53",
3
+ "version": "0.1.54",
4
4
  "description": "Multi-platform build tool for PlusUI",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -25,6 +25,6 @@
25
25
  ],
26
26
  "license": "MIT",
27
27
  "dependencies": {
28
- "plusui-native-bindgen": "^0.1.53"
28
+ "plusui-native-connect": "^0.1.54"
29
29
  }
30
30
  }
package/src/index.js CHANGED
@@ -33,7 +33,7 @@ Usage:
33
33
  plusui-builder Build for current platform
34
34
  plusui-builder <platform> Build for specific platform
35
35
  plusui-builder all Build for all platforms
36
- plusui-builder generate Generate bindings only
36
+ plusui-builder generate Generate connection bindings only
37
37
 
38
38
  Platforms:
39
39
  win32 - Windows (x64)
@@ -57,11 +57,13 @@ const PLATFORMS = {
57
57
 
58
58
  function resolveBindgenScriptPath() {
59
59
  const candidates = [
60
- join(__dirname, '..', '..', 'plusui-bindgen', 'src', 'advanced-bindgen.js'),
61
- join(__dirname, '..', '..', 'plusui-bindgen', 'src', 'index.js'),
62
- join(__dirname, '..', '..', 'plusui-native-bindgen', 'src', 'advanced-bindgen.js'),
60
+ join(__dirname, '..', '..', 'plusui-connector', 'src', 'connect.js'),
61
+ join(__dirname, '..', '..', 'plusui-connector', 'src', 'index.js'),
62
+ join(__dirname, '..', '..', 'plusui-native-connect', 'src', 'index.js'),
63
63
  join(__dirname, '..', '..', 'plusui-native-bindgen', 'src', 'index.js'),
64
- join(process.cwd(), 'node_modules', 'plusui-native-bindgen', 'src', 'advanced-bindgen.js'),
64
+ join(process.cwd(), 'node_modules', 'plusui-native-connect', 'src', 'connect.js'),
65
+ join(__dirname, '..', '..', 'plusui-native-connect', 'src', 'connect.js'),
66
+ join(process.cwd(), 'node_modules', 'plusui-native-connect', 'src', 'index.js'),
65
67
  join(process.cwd(), 'node_modules', 'plusui-native-bindgen', 'src', 'index.js'),
66
68
  ];
67
69
 
@@ -96,18 +98,18 @@ function runCommand(cmd, options = {}) {
96
98
  }
97
99
 
98
100
  function generateBindings() {
99
- log('Generating bindings...', 'blue');
101
+ log('Generating connection bindings...', 'blue');
100
102
  const bindgenPath = resolveBindgenScriptPath();
101
103
 
102
104
  if (!bindgenPath) {
103
- error('plusui-bindgen not found. Please ensure plusui-native-bindgen is installed.');
105
+ error('plusui-connect tool not found. Please ensure plusui-native-connect is installed.');
104
106
  }
105
107
 
106
108
  const projectRoot = '.';
107
109
  const outputDir = './src/Bindings';
108
110
  runCommand(`node ${bindgenPath} ${projectRoot} ${outputDir}`);
109
111
  syncGeneratedTsBindings('./src/Bindings', './frontend/src/Bindings');
110
- log('Bindings generated ✓', 'green');
112
+ log('Connection bindings generated ✓', 'green');
111
113
  }
112
114
 
113
115
  function getCMakePlatformArgs(platform) {