pinokiod 3.4.25 → 3.4.27
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 -2
- package/package.json +1 -1
- package/script/index.js +1 -0
- package/server/index.js +22 -21
package/kernel/bin/vs.js
CHANGED
|
@@ -24,7 +24,7 @@ class VS {
|
|
|
24
24
|
})
|
|
25
25
|
ondata({ raw: `Install finished\r\n\r\n` })
|
|
26
26
|
let WARNING = `<div><div>[NOTICE] Visual Studio install step keeps repeating?</div>
|
|
27
|
-
<ol>
|
|
27
|
+
<ol style="padding-inline-start:20px">
|
|
28
28
|
<li>Launch <b>Visual Studio Installer</b> on Windows</li>
|
|
29
29
|
<li>Find <b>Visual Studio Build Tools 2019</b> and <b>Uninstall</b></li>
|
|
30
30
|
<li>And relaunch Pinokio</li>
|
|
@@ -37,7 +37,7 @@ class VS {
|
|
|
37
37
|
|
|
38
38
|
let html = `<div>
|
|
39
39
|
<img src="/vsinstaller.gif">
|
|
40
|
-
<div style="padding
|
|
40
|
+
<div style="padding:5px; font-size:12px">${WARNING}</div>
|
|
41
41
|
</div>`
|
|
42
42
|
ondata({
|
|
43
43
|
html,
|
package/package.json
CHANGED
package/script/index.js
CHANGED
package/server/index.js
CHANGED
|
@@ -2101,27 +2101,28 @@ class Server {
|
|
|
2101
2101
|
if (options && options.port) {
|
|
2102
2102
|
this.port = options.port
|
|
2103
2103
|
} else {
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
const
|
|
2111
|
-
const
|
|
2112
|
-
|
|
2113
|
-
// const
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2104
|
+
this.port = 42000
|
|
2105
|
+
// let platform = os.platform()
|
|
2106
|
+
// if (platform === 'linux') {
|
|
2107
|
+
// // on linux you are not allowed to listen on ports below 1024
|
|
2108
|
+
// this.port = 42000
|
|
2109
|
+
// } else {
|
|
2110
|
+
// const primary_port = 80
|
|
2111
|
+
// const secondary_port = 42000
|
|
2112
|
+
// const available = await Util.is_port_available(primary_port)
|
|
2113
|
+
// //const running = await Util.is_port_running(primary_port)
|
|
2114
|
+
//// const running1 = await Util.port_running("localhost", primary_port)
|
|
2115
|
+
//// const running2 = await Util.port_running("127.0.0.1", primary_port)
|
|
2116
|
+
//// const running = running1 || running2
|
|
2117
|
+
//// const available = !running
|
|
2118
|
+
// //const available = await portfinder.isAvailablePromise({ host: "0.0.0.0", port: primary_port })
|
|
2119
|
+
// console.log("check available", { primary_port, available })
|
|
2120
|
+
// if (available) {
|
|
2121
|
+
// this.port = primary_port
|
|
2122
|
+
// } else {
|
|
2123
|
+
// this.port = secondary_port
|
|
2124
|
+
// }
|
|
2125
|
+
// }
|
|
2125
2126
|
}
|
|
2126
2127
|
|
|
2127
2128
|
console.log("available port", this.port)
|