pinokiod 3.6.5 → 3.6.7
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/ffmpeg.js +2 -2
- package/kernel/bin/index.js +4 -0
- package/package.json +1 -1
package/kernel/bin/ffmpeg.js
CHANGED
|
@@ -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=5.1.2",
|
|
11
11
|
]
|
|
12
12
|
// conda: {
|
|
13
13
|
// name: "base",
|
|
@@ -16,7 +16,7 @@ class Ffmpeg {
|
|
|
16
16
|
}, ondata)
|
|
17
17
|
}
|
|
18
18
|
async installed() {
|
|
19
|
-
return this.kernel.bin.installed.conda.has("ffmpeg")
|
|
19
|
+
return this.kernel.bin.installed.conda.has("ffmpeg") && this.kernel.bin.installed.conda_versions.ffmpeg === "5.1.2"
|
|
20
20
|
}
|
|
21
21
|
async uninstall(req, ondata) {
|
|
22
22
|
await this.kernel.bin.exec({
|
package/kernel/bin/index.js
CHANGED
|
@@ -248,6 +248,7 @@ class Bin {
|
|
|
248
248
|
let start
|
|
249
249
|
let conda_check = {}
|
|
250
250
|
let conda = new Set()
|
|
251
|
+
let conda_versions = {}
|
|
251
252
|
|
|
252
253
|
//////////////////////////////////////////////////////////////////
|
|
253
254
|
// exception handling
|
|
@@ -288,6 +289,7 @@ class Bin {
|
|
|
288
289
|
let name = chunks[0]
|
|
289
290
|
let version = chunks[1]
|
|
290
291
|
conda.add(name)
|
|
292
|
+
conda_versions[name] = version
|
|
291
293
|
if (name === "conda") {
|
|
292
294
|
//if (String(version) === "24.11.1") {
|
|
293
295
|
if (String(version) === "24.11.3") {
|
|
@@ -331,6 +333,8 @@ class Bin {
|
|
|
331
333
|
}
|
|
332
334
|
}
|
|
333
335
|
this.installed.conda = conda
|
|
336
|
+
this.installed.conda_versions = conda_versions
|
|
337
|
+
console.log("this.installed", this.installed)
|
|
334
338
|
}
|
|
335
339
|
async refreshInstalled() {
|
|
336
340
|
|