pinokiod 3.6.1 → 3.6.3
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/api/index.js +3 -0
- package/kernel/bin/ffmpeg.js +1 -1
- package/kernel/bin/py.js +0 -1
- package/package.json +1 -1
- package/server/index.js +7 -7
package/kernel/api/index.js
CHANGED
|
@@ -1162,6 +1162,9 @@ class Api {
|
|
|
1162
1162
|
// let keypath = path.resolve(this.kernel.homedir, "key.json")
|
|
1163
1163
|
// this.kernel.keys = (await this.loader.load(keypath)).resolved
|
|
1164
1164
|
|
|
1165
|
+
// init shell before running just to make sure the environment variables are fresh
|
|
1166
|
+
await this.kernel.shell.init()
|
|
1167
|
+
|
|
1165
1168
|
if (request.uri){
|
|
1166
1169
|
this.counter++;
|
|
1167
1170
|
// API Call
|
package/kernel/bin/ffmpeg.js
CHANGED
package/kernel/bin/py.js
CHANGED
|
@@ -2,7 +2,6 @@ const fse = require('fs-extra')
|
|
|
2
2
|
const path = require('path')
|
|
3
3
|
class Py {
|
|
4
4
|
async install(req, ondata) {
|
|
5
|
-
// set the permission
|
|
6
5
|
await fse.remove(this.kernel.path('bin/py'))
|
|
7
6
|
await this.kernel.exec({
|
|
8
7
|
message: "git clone https://github.com/pinokiocomputer/python py",
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -489,9 +489,10 @@ class Server {
|
|
|
489
489
|
}, {
|
|
490
490
|
name: "node",
|
|
491
491
|
}, {
|
|
492
|
-
type: "conda",
|
|
493
492
|
name: "ffmpeg",
|
|
494
|
-
|
|
493
|
+
// type: "conda",
|
|
494
|
+
// name: "ffmpeg",
|
|
495
|
+
// args: "-c conda-forge"
|
|
495
496
|
}]
|
|
496
497
|
let platform = os.platform()
|
|
497
498
|
if (platform === "win32") {
|
|
@@ -777,9 +778,10 @@ class Server {
|
|
|
777
778
|
}, {
|
|
778
779
|
name: "node",
|
|
779
780
|
}, {
|
|
780
|
-
type: "conda",
|
|
781
781
|
name: "ffmpeg",
|
|
782
|
-
|
|
782
|
+
// type: "conda",
|
|
783
|
+
// name: "ffmpeg",
|
|
784
|
+
// args: "-c conda-forge"
|
|
783
785
|
}]
|
|
784
786
|
let platform = os.platform()
|
|
785
787
|
if (platform === "win32") {
|
|
@@ -2098,9 +2100,7 @@ class Server {
|
|
|
2098
2100
|
|
|
2099
2101
|
// determine port if port is not passed in
|
|
2100
2102
|
|
|
2101
|
-
if (
|
|
2102
|
-
this.port = options.port
|
|
2103
|
-
} else {
|
|
2103
|
+
if (!this.port) {
|
|
2104
2104
|
this.port = 42000
|
|
2105
2105
|
// let platform = os.platform()
|
|
2106
2106
|
// if (platform === 'linux') {
|