pinokiod 7.1.2 → 7.1.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.
@@ -17,6 +17,9 @@ module.exports = {
17
17
  "ffmpeg",
18
18
  // "caddy"
19
19
  ]
20
+ if (platform !== "win32") {
21
+ conda_requirements.push("tmux")
22
+ }
20
23
  let requirements = [
21
24
  { name: "conda", },
22
25
  { name: "zip", },
@@ -48,6 +51,7 @@ module.exports = {
48
51
  // { name: "playwright" },
49
52
  { name: "huggingface" },
50
53
  { name: "uv" },
54
+ { name: "tmux" },
51
55
  { name: "py" },
52
56
  // browserless disabled for now (keep module for later re-enable)
53
57
  ])
@@ -158,6 +162,7 @@ module.exports = {
158
162
  { name: "uv", },
159
163
  { name: "py", },
160
164
  { name: "huggingface" },
165
+ { name: "tmux" },
161
166
  { name: "ffmpeg", },
162
167
  // browserless disabled for now (keep module for later re-enable)
163
168
  ])
@@ -169,6 +174,9 @@ module.exports = {
169
174
  "git",
170
175
  "ffmpeg",
171
176
  ]
177
+ if (platform !== "win32") {
178
+ conda_requirements.push("tmux")
179
+ }
172
180
  return {
173
181
  icon: "fa-solid fa-laptop-code",
174
182
  title: "Coding (Essential)",
@@ -0,0 +1,51 @@
1
+ const path = require("path")
2
+
3
+ class Tmux {
4
+ windowsUrl = "https://github.com/itefixnet/itmux/releases/download/v1.1.0/itmux_1.1.0_x64_free.zip"
5
+
6
+ cmd() {
7
+ return "tmux"
8
+ }
9
+ async install(req, ondata) {
10
+ if (this.kernel.platform === "win32") {
11
+ if (this.kernel.arch !== "x64") {
12
+ throw new Error(`itmux only has a Windows x64 release (current arch: ${this.kernel.arch})`)
13
+ }
14
+ const dest = path.basename(new URL(this.windowsUrl).pathname)
15
+ await this.kernel.bin.rm("tmux", ondata)
16
+ await this.kernel.bin.download(this.windowsUrl, dest, ondata)
17
+ await this.kernel.bin.unzip(dest, this.kernel.bin.path("tmux"), null, ondata)
18
+ await this.kernel.bin.rm(dest, ondata)
19
+ } else {
20
+ await this.kernel.bin.exec({
21
+ message: [
22
+ "conda clean -y --all",
23
+ `conda install -y -c conda-forge ${this.cmd()}`
24
+ ]
25
+ }, ondata)
26
+ }
27
+ }
28
+ async installed() {
29
+ if (this.kernel.platform === "win32") {
30
+ return this.kernel.bin.exists("tmux/bin/tmux.exe")
31
+ } else {
32
+ return this.kernel.bin.installed.conda.has("tmux")
33
+ }
34
+ }
35
+ async uninstall(req, ondata) {
36
+ if (this.kernel.platform === "win32") {
37
+ await this.kernel.bin.rm("tmux", ondata)
38
+ } else {
39
+ await this.kernel.bin.exec({ message: "conda remove tmux" }, ondata)
40
+ }
41
+ }
42
+ env() {
43
+ if (this.kernel.platform === "win32") {
44
+ return {
45
+ PATH: [this.kernel.bin.path("tmux/bin")]
46
+ }
47
+ }
48
+ }
49
+ }
50
+
51
+ module.exports = Tmux
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "7.1.2",
3
+ "version": "7.1.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {