pinokiod 3.19.6 → 3.19.9
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/cli.js +3 -1
- package/package.json +1 -1
- package/server/views/index.ejs +2 -0
package/kernel/bin/cli.js
CHANGED
|
@@ -6,11 +6,12 @@ class CLI {
|
|
|
6
6
|
}, ondata)
|
|
7
7
|
}
|
|
8
8
|
async installed(req, ondata) {
|
|
9
|
-
console.log("Check installed")
|
|
9
|
+
console.log("Check CLI installed")
|
|
10
10
|
if (this.kernel.which('pinokio')) {
|
|
11
11
|
let res = await this.kernel.exec({
|
|
12
12
|
message: "pinokio version terminal"
|
|
13
13
|
}, ondata)
|
|
14
|
+
console.log("RES", res)
|
|
14
15
|
if (/.*pterm@0\.0\.6.*/.test(res.stdout)) {
|
|
15
16
|
console.log("Installed")
|
|
16
17
|
return true
|
|
@@ -19,6 +20,7 @@ class CLI {
|
|
|
19
20
|
return false
|
|
20
21
|
}
|
|
21
22
|
} else {
|
|
23
|
+
console.log("FALSE")
|
|
22
24
|
return false
|
|
23
25
|
}
|
|
24
26
|
}
|
package/package.json
CHANGED
package/server/views/index.ejs
CHANGED
|
@@ -798,11 +798,13 @@ if (document.querySelector("form input[type=search]")) {
|
|
|
798
798
|
// if launch_complete is false => not finished launching. wait until it's complete, and then refresh
|
|
799
799
|
// autolaunch display update
|
|
800
800
|
<% if (!launch_complete) { %>
|
|
801
|
+
debugger
|
|
801
802
|
let interval = setInterval(async () => {
|
|
802
803
|
let res = await fetch("/pinokio/info").then((res) => {
|
|
803
804
|
return res.json()
|
|
804
805
|
})
|
|
805
806
|
if (res.launch_complete) {
|
|
807
|
+
debugger
|
|
806
808
|
console.log("launched")
|
|
807
809
|
clearInterval(interval)
|
|
808
810
|
location.href = location.href
|