pinokiod 3.2.84 → 3.2.86

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.
@@ -302,7 +302,7 @@ class Bin {
302
302
  this.installed.pip = pip
303
303
 
304
304
 
305
- if (this.platform === "darwin" || this.platform === "linux") {
305
+ if (this.platform === "darwin") {
306
306
  // 3. brew
307
307
  console.log("## check brew")
308
308
 
@@ -356,7 +356,7 @@ class Bin {
356
356
  let result = await this.kernel.bin.exec({ message: "xcode-select --version" }, (stream) => { })
357
357
  if (result && result.stdout) {
358
358
  e4 = /xcode-select version ([0-9]+)/gi.exec(result.stdout)
359
- if (e4.length > 1) {
359
+ if (e4 && e4.length > 1) {
360
360
  let version = Number(e4[1])
361
361
  console.log("xcode-select version", version)
362
362
  if (version >= 2349) {
package/kernel/index.js CHANGED
@@ -337,13 +337,15 @@ class Kernel {
337
337
 
338
338
  // let contents = await fs.promises.readdir(this.homedir)
339
339
  //await this.bin.init()
340
- console.time("bin.init")
340
+ let ts = Date.now()
341
+ console.time("bin.init " + ts)
341
342
  this.bin.init().then(() => {
342
- console.timeEnd("bin.init")
343
+ console.timeEnd("bin.init" + ts)
343
344
  })
344
- console.time("api.init")
345
+ let ts2 = Date.now()
346
+ console.time("api.init " + ts2)
345
347
  await this.api.init()
346
- console.timeEnd("api.init")
348
+ console.timeEnd("api.init " + ts2)
347
349
 
348
350
  //await this.shell.init()
349
351
 
@@ -398,9 +400,10 @@ class Kernel {
398
400
  await this.update_sysinfo()
399
401
  console.timeEnd("update_sysinfo")
400
402
  */
401
- console.time("shell.init")
403
+ let ts3 = Date.now()
404
+ console.time("shell.init " + ts3)
402
405
  this.shell.init().then(() => {
403
- console.timeEnd("shell.init")
406
+ console.timeEnd("shell.init" + ts3)
404
407
  if (this.envs) {
405
408
  this.template.update({
406
409
  env: this.envs,
@@ -26,7 +26,6 @@ class Python {
26
26
  resolve()
27
27
  }, 3000)
28
28
  })
29
- this.proc = true
30
29
  }
31
30
 
32
31
  let res = await fetch("http://127.0.0.1:42001/call", {
@@ -41,6 +40,7 @@ class Python {
41
40
  }).then((res) => {
42
41
  return res.json()
43
42
  })
43
+ this.proc = true
44
44
  return res
45
45
  }
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.84",
3
+ "version": "3.2.86",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -71,6 +71,9 @@ class Server {
71
71
  process.env[PATH_KEY]
72
72
  ].join(path.delimiter)
73
73
  }
74
+ if (platform === "linux") {
75
+ process.env.WEBKIT_DISABLE_DMABUF_RENDERER = 1
76
+ }
74
77
  }
75
78
  stop() {
76
79
  this.server.close()