plusui-native 0.2.70 → 0.2.72
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.72",
|
|
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-connect": "^0.1.
|
|
30
|
+
"plusui-native-builder": "^0.1.71",
|
|
31
|
+
"plusui-native-connect": "^0.1.71"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"plusui-native-connect": "^0.1.
|
|
34
|
+
"plusui-native-connect": "^0.1.71"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
package/src/index.js
CHANGED
|
@@ -648,7 +648,8 @@ function buildBackend(platform = null, devMode = false) {
|
|
|
648
648
|
cmakeArgs += ` -G "${platformConfig.generator}"`;
|
|
649
649
|
} else if (process.platform === 'win32') {
|
|
650
650
|
// Use Ninja on Windows to avoid VS generator compatibility issues
|
|
651
|
-
|
|
651
|
+
// Use embedded debug info (/Z7) to avoid VS 2026 PDB creation bug (C1041)
|
|
652
|
+
cmakeArgs += ' -G Ninja -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded';
|
|
652
653
|
}
|
|
653
654
|
|
|
654
655
|
log(`Configuring CMake...`, 'blue');
|
|
@@ -841,9 +842,25 @@ async function startBackend() {
|
|
|
841
842
|
const buildDir = getDevBuildDir();
|
|
842
843
|
|
|
843
844
|
// On Windows, use Ninja generator to avoid VS generator compatibility issues
|
|
845
|
+
// Also use embedded debug info (/Z7) to avoid VS 2026 PDB creation bug (C1041)
|
|
844
846
|
let generatorArgs = '';
|
|
845
847
|
if (process.platform === 'win32') {
|
|
846
|
-
generatorArgs = ' -G Ninja';
|
|
848
|
+
generatorArgs = ' -G Ninja -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded';
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
// Auto-clean build dir if generator changed (e.g. VS → Ninja)
|
|
852
|
+
const cacheFile = join(buildDir, 'CMakeCache.txt');
|
|
853
|
+
if (existsSync(cacheFile)) {
|
|
854
|
+
try {
|
|
855
|
+
const cacheContent = execSync(`type "${cacheFile}"`, { encoding: 'utf8', shell: true, stdio: ['pipe', 'pipe', 'ignore'] });
|
|
856
|
+
const generatorMatch = cacheContent.match(/CMAKE_GENERATOR:INTERNAL=(.*)/);
|
|
857
|
+
const cachedGenerator = generatorMatch ? generatorMatch[1].trim() : '';
|
|
858
|
+
const wantNinja = generatorArgs.includes('Ninja');
|
|
859
|
+
if ((wantNinja && cachedGenerator !== 'Ninja') || (!wantNinja && cachedGenerator === 'Ninja')) {
|
|
860
|
+
log(`Generator changed (${cachedGenerator} → ${wantNinja ? 'Ninja' : 'default'}), cleaning build dir...`, 'yellow');
|
|
861
|
+
execSync(process.platform === 'win32' ? `rmdir /s /q "${buildDir}"` : `rm -rf "${buildDir}"`, { stdio: 'ignore', shell: true });
|
|
862
|
+
}
|
|
863
|
+
} catch { }
|
|
847
864
|
}
|
|
848
865
|
|
|
849
866
|
// Always configure with dev mode to ensure PLUSUI_DEV_MODE is set correctly
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
cmake_minimum_required(VERSION 3.16)
|
|
2
|
+
|
|
3
|
+
# Enable modern MSVC debug information format (needed for /Z7 embedded debug)
|
|
4
|
+
if(POLICY CMP0141)
|
|
5
|
+
cmake_policy(SET CMP0141 NEW)
|
|
6
|
+
endif()
|
|
7
|
+
|
|
2
8
|
project({{PROJECT_NAME}} VERSION {{PROJECT_VERSION}} LANGUAGES CXX)
|
|
3
9
|
|
|
4
10
|
set(CMAKE_CXX_STANDARD 20)
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
cmake_minimum_required(VERSION 3.16)
|
|
2
|
+
|
|
3
|
+
# Enable modern MSVC debug information format (needed for /Z7 embedded debug)
|
|
4
|
+
if(POLICY CMP0141)
|
|
5
|
+
cmake_policy(SET CMP0141 NEW)
|
|
6
|
+
endif()
|
|
7
|
+
|
|
2
8
|
project({{PROJECT_NAME}} VERSION {{PROJECT_VERSION}} LANGUAGES CXX)
|
|
3
9
|
|
|
4
10
|
set(CMAKE_CXX_STANDARD 20)
|