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 +9 -2
- package/kernel/bin/git.js +5 -0
- package/kernel/shell.js +3 -0
- package/package.json +1 -1
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
|
|
13
|
-
console.log("
|
|
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