plusui-native 0.2.9 → 0.2.11
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plusui-native",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
4
4
|
"description": "PlusUI CLI - Build C++ desktop apps modern UI ",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"semver": "^7.6.0",
|
|
28
28
|
"which": "^4.0.0",
|
|
29
29
|
"execa": "^8.0.1",
|
|
30
|
-
"plusui-native-builder": "^0.1.
|
|
31
|
-
"plusui-native-bindgen": "^0.1.
|
|
30
|
+
"plusui-native-builder": "^0.1.11",
|
|
31
|
+
"plusui-native-bindgen": "^0.1.11"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"plusui-native-bindgen": "^0.1.
|
|
34
|
+
"plusui-native-bindgen": "^0.1.11"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
package/src/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { mkdir, readFile, stat, rm, readdir, writeFile, copyFile } from 'fs/promises';
|
|
4
4
|
import { existsSync, watch, statSync, mkdirSync } from 'fs';
|
|
@@ -372,6 +372,8 @@ function buildBackend(platform = null, devMode = false) {
|
|
|
372
372
|
|
|
373
373
|
if (devMode) {
|
|
374
374
|
cmakeArgs += ' -DPLUSUI_DEV_MODE=ON';
|
|
375
|
+
} else {
|
|
376
|
+
cmakeArgs += ' -DPLUSUI_DEV_MODE=OFF';
|
|
375
377
|
}
|
|
376
378
|
|
|
377
379
|
if (platformConfig.generator) {
|
|
@@ -567,11 +569,9 @@ async function startBackend() {
|
|
|
567
569
|
|
|
568
570
|
const buildDir = getDevBuildDir();
|
|
569
571
|
|
|
570
|
-
//
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
runCMake(`-S . -B "${buildDir}" -DPLUSUI_DEV_MODE=ON`);
|
|
574
|
-
}
|
|
572
|
+
// Always configure with dev mode to ensure PLUSUI_DEV_MODE is set correctly
|
|
573
|
+
log('Configuring CMake...', 'blue');
|
|
574
|
+
runCMake(`-S . -B "${buildDir}" -DPLUSUI_DEV_MODE=ON`);
|
|
575
575
|
|
|
576
576
|
log('Compiling...', 'blue');
|
|
577
577
|
runCMake(`--build "${buildDir}"`);
|
|
@@ -743,10 +743,9 @@ function devBackend() {
|
|
|
743
743
|
|
|
744
744
|
const buildDir = getDevBuildDir();
|
|
745
745
|
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
}
|
|
746
|
+
// Always configure with dev mode to ensure PLUSUI_DEV_MODE is set correctly
|
|
747
|
+
log('Configuring CMake...', 'blue');
|
|
748
|
+
runCMake(`-S . -B "${buildDir}" -DPLUSUI_DEV_MODE=ON`);
|
|
750
749
|
|
|
751
750
|
runCMake(`--build "${buildDir}"`);
|
|
752
751
|
|