pinokiod 3.3.47 → 3.3.49
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/kernel/bin/vs.js +2 -5
- package/package.json +1 -1
package/kernel/bin/vs.js
CHANGED
|
@@ -46,14 +46,10 @@ class VS {
|
|
|
46
46
|
console.log("exists", ROOT_PATH)
|
|
47
47
|
let vcpaths = await glob('**/VC/Tools/MSVC', { absolute: true, cwd: ROOT_PATH })
|
|
48
48
|
console.log({ vcpaths })
|
|
49
|
-
if (vcpaths && vcpaths > 0) {
|
|
49
|
+
if (vcpaths && vcpaths.length > 0) {
|
|
50
50
|
for(let vcpath of vcpaths) {
|
|
51
|
-
console.log("testing vcpath", vcpath)
|
|
52
51
|
if (/.*2019.*/.test(vcpath)) {
|
|
53
|
-
console.log("matched", vcpath)
|
|
54
52
|
MSVC_PATH.push(vcpath)
|
|
55
|
-
} else {
|
|
56
|
-
console.log("not matched", vcpath)
|
|
57
53
|
}
|
|
58
54
|
}
|
|
59
55
|
}
|
|
@@ -133,6 +129,7 @@ class VS {
|
|
|
133
129
|
if (this.kernel.platform === "win32") {
|
|
134
130
|
let paths = await this.getpaths()
|
|
135
131
|
console.log("VS INSTALLED CHECK", paths)
|
|
132
|
+
await this.init()
|
|
136
133
|
return paths.MSVC_PATH && paths.MSVC_PATH.length > 0 && paths.BUILD_PATH && paths.BUILD_PATH.length > 0 && paths.CMAKE_PATH && paths.CMAKE_PATH.length > 0 && paths.VCVARSALL_PATH && paths.VCVARSALL_PATH.length > 0
|
|
137
134
|
}
|
|
138
135
|
}
|