pinokiod 3.19.18 → 3.19.20

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 CHANGED
@@ -9,8 +9,15 @@ class CLI {
9
9
  async installed(req, ondata) {
10
10
  console.log("Check CLI installed")
11
11
 
12
- let exists = await Util.exists(this.kernel.path("bin/npm/pinokio"))
13
- console.log("Exists", exists)
12
+ let exists
13
+ console.log("platform", this.kernel.platform)
14
+ if (this.kernel.platform === "win32") {
15
+ exists = await Util.exists(this.kernel.path("bin/npm/pinokio"))
16
+ console.log("Exists", exists)
17
+ } else {
18
+ exists = await Util.exists(this.kernel.path("bin/npm/bin/pinokio"))
19
+ console.log("Exists", exists)
20
+ }
14
21
 
15
22
  if (exists) {
16
23
  let p = this.kernel.which("pinokio")
package/kernel/bin/git.js CHANGED
@@ -7,6 +7,8 @@ class Git {
7
7
  cmd() {
8
8
  if (this.kernel.platform === "darwin") {
9
9
  return "git git-lfs"
10
+ } else if (this.kernel.platform === "win32") {
11
+ return "git git-lfs gh git-bash"
10
12
  } else {
11
13
  return "git git-lfs gh"
12
14
  }
@@ -90,6 +92,9 @@ class Git {
90
92
  if (this.kernel.platform === "darwin") {
91
93
  let gh_config_exists = await this.kernel.exists("config/gh")
92
94
  return this.kernel.bin.installed.conda && this.kernel.bin.installed.conda.has("git") && this.kernel.bin.installed.brew.has("gh") && gh_config_exists
95
+ } else if (this.kernel.platform === "win32") {
96
+ let gh_config_exists = await this.kernel.exists("config/gh")
97
+ return this.kernel.bin.installed.conda && this.kernel.bin.installed.conda.has("git") && this.kernel.bin.installed.conda.has("git-bash") && this.kernel.bin.installed.brew.has("gh") && gh_config_exists
93
98
  } else {
94
99
  let gh_config_exists = await this.kernel.exists("config/gh")
95
100
  return this.kernel.bin.installed.conda && this.kernel.bin.installed.conda.has("git") && this.kernel.bin.installed.conda.has("gh") && gh_config_exists
package/kernel/shell.js CHANGED
@@ -254,6 +254,9 @@ class Shell {
254
254
 
255
255
  this.start_time = Date.now()
256
256
  this.params = params
257
+ if (this.params.shell) {
258
+ this.shell = this.params.shell
259
+ }
257
260
 
258
261
  // 3. path => path can be http, relative, absolute
259
262
  this.path = params.path
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.19.18",
3
+ "version": "3.19.20",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {