pinokiod 3.6.1 → 3.6.2

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.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -2098,9 +2098,7 @@ class Server {
2098
2098
 
2099
2099
  // determine port if port is not passed in
2100
2100
 
2101
- if (options && options.port) {
2102
- this.port = options.port
2103
- } else {
2101
+ if (!this.port) {
2104
2102
  this.port = 42000
2105
2103
  // let platform = os.platform()
2106
2104
  // if (platform === 'linux') {