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.
@@ -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
@@ -7,7 +7,7 @@ class Ffmpeg {
7
7
  await this.kernel.bin.exec({
8
8
  message: [
9
9
  "conda clean -y --all",
10
- "conda install -y -c conda-forge ffmpeg",
10
+ "conda install -y -c conda-forge ffmpeg=7.0.2",
11
11
  ]
12
12
  // conda: {
13
13
  // name: "base",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
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
- args: "-c conda-forge"
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
- args: "-c conda-forge"
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 (options && options.port) {
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') {