pinokiod 3.2.53 → 3.2.54

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.
@@ -18,14 +18,18 @@ class Brew {
18
18
  await this.kernel.bin.rm("Homebrew.zip", ondata)
19
19
 
20
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) })
21
+
22
+ let sh_path = path.resolve(this.kernel.homedir, "xcode.sh")
23
+ let sh = await fs.promises.readFile("xcode.sh", "utf8")
24
+ console.log({ sh })
25
+ await fs.promises.writeFile(sh_path, sh)
26
+ await this.kernel.bin.exec({ message: "xcode.sh", path: this.kernel.homedir }, (stream) => { ondata(stream) })
23
27
 
24
28
  ondata({ raw: "installing xcode-select. please approve the xcode-select install dialog and install before proceeding...\r\n" })
25
29
  await this.kernel.bin.exec({ message: "xcode-select --install" }, (stream) => { ondata(stream) })
26
30
 
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) })
31
+ //ondata({ raw: "Setting CommandLineTools path...\r\n" })
32
+ //await this.kernel.bin.exec({ sudo: true, message: "xcode-select -switch /Library/Developer/CommandLineTools" }, (stream) => { ondata(stream) })
29
33
  }
30
34
  //
31
35
  ondata({ raw: "installing gettext\r\n" })
@@ -0,0 +1,25 @@
1
+ #!/bin/bash
2
+ sudo rm -rf /Library/Developer/CommandLineTools
3
+
4
+ # Trigger the installation
5
+ xcode-select --install
6
+
7
+ # Wait for the "Install Command Line Developer Tools" process to start
8
+ echo "Waiting for the installation dialog to be confirmed..."
9
+ while ! pgrep "Install Command Line Developer Tools" > /dev/null; do
10
+ sleep 1
11
+ done
12
+
13
+ echo "Installation in progress..."
14
+
15
+ # Wait for the installation process to finish
16
+ while pgrep "Install Command Line Developer Tools" > /dev/null; do
17
+ sleep 1
18
+ done
19
+
20
+ echo "Installation completed."
21
+
22
+ # Switch to the installed Command Line Tools path
23
+ xcode-select -switch /Library/Developer/CommandLineTools
24
+
25
+ echo "Switched to Command Line Tools."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.53",
3
+ "version": "3.2.54",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {