pinokiod 3.2.78 → 3.2.80

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.
@@ -121,8 +121,8 @@ conda-libmamba-solver=24.7.0`)
121
121
  "conda clean -y --all",
122
122
  `conda config --file ${this.kernel.path('condarc')} --set remote_read_timeout_secs 300`,
123
123
  // "conda install libsqlite --force-reinstall -y",
124
- `conda config --file ${this.kernel.path('condarc')} --set auto_update_conda False`,
125
- // "conda install -y conda-libmamba-solver=24.7.0 conda=24.7.1",
124
+ // `conda config --file ${this.kernel.path('condarc')} --set auto_update_conda False`,
125
+ "conda install -y conda-libmamba-solver=24.7.0 conda=24.7.1",
126
126
  "conda update -y --all",
127
127
  // "conda update -y conda",
128
128
  // "conda update -y --all",
@@ -345,8 +345,32 @@ class Bin {
345
345
  let { stdout }= await this.kernel.bin.exec({ message: "xcode-select -p" }, (stream) => { })
346
346
  let e2 = /(.*Library.*Developer.*CommandLineTools.*|.*Xcode.*Developer.*)/gi.test(stdout)
347
347
  let e3 = await this.kernel.exists("/Library/Developer/CommandLineTools")
348
- console.log({ e, e2, stdout })
349
- this.brew_installed = e && e2 && e3
348
+
349
+ // if xcode-select version exists
350
+ // - if version is greater thatn 2349 => yes
351
+ // - if version lower than 2349 => no
352
+ // if xcode-select version doesn't match
353
+ // - no
354
+
355
+ let e4;
356
+ let result = await this.kernel.bin.exec({ message: "xcode-select --version" }, (stream) => { })
357
+ if (result && result.stdout) {
358
+ let e4 = /xcode-select version ([0-9]+)/gi.exec(result.stdout)
359
+ if (e4.length > 1) {
360
+ let version = Number(e4[1])
361
+ if (version >= 2349) {
362
+ e4 = true
363
+ } else {
364
+ e4 = false
365
+ }
366
+ } else {
367
+ e4 = false
368
+ }
369
+ } else {
370
+ e4 = false
371
+ }
372
+ console.log({ e, e2, e3, e4, stdout })
373
+ this.brew_installed = e && e2 && e3 && e4
350
374
 
351
375
  }
352
376
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.78",
3
+ "version": "3.2.80",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {