pinokiod 3.2.52 → 3.2.53

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.
Files changed (2) hide show
  1. package/kernel/bin/brew.js +10 -2
  2. package/package.json +1 -1
@@ -17,8 +17,16 @@ class Brew {
17
17
  await this.kernel.bin.unzip("Homebrew.zip", this.kernel.bin.path(), null, ondata)
18
18
  await this.kernel.bin.rm("Homebrew.zip", ondata)
19
19
 
20
- ondata({ raw: "installing xcode-select. please approve the xcode-select install dialog and install before proceeding...\r\n" })
21
- await this.kernel.bin.exec({ message: "xcode-select --install" }, (stream) => { ondata(stream) })
20
+ if (this.kernel.platform === "darwin") {
21
+ ondata({ raw: "removing existing xcode-select...\r\n" })
22
+ await this.kernel.bin.exec({ sudo: true, message: "rm -rf /Library/Developer/CommandLineTools" }, (stream) => { ondata(stream) })
23
+
24
+ ondata({ raw: "installing xcode-select. please approve the xcode-select install dialog and install before proceeding...\r\n" })
25
+ await this.kernel.bin.exec({ message: "xcode-select --install" }, (stream) => { ondata(stream) })
26
+
27
+ ondata({ raw: "Setting CommandLineTools path...\r\n" })
28
+ await this.kernel.bin.exec({ sudo: true, message: "xcode-select -switch /Library/Developer/CommandLineTools" }, (stream) => { ondata(stream) })
29
+ }
22
30
  //
23
31
  ondata({ raw: "installing gettext\r\n" })
24
32
  await this.kernel.bin.exec({ message: "brew install gettext --force-bottle" }, (stream) => { ondata(stream) })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.52",
3
+ "version": "3.2.53",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {