pinokiod 3.5.5 → 3.5.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.
@@ -197,7 +197,7 @@ report_errors: false`)
197
197
  }
198
198
  ondata({ raw: `${cmd}\r\n` })
199
199
  ondata({ raw: `path: ${this.kernel.bin.path()}\r\n` })
200
- await this.kernel.bin.exec({ message: cmd, conda: { skip: true } }, (stream) => {
200
+ await this.kernel.bin.exec({ message: cmd, vs: { skip: true }, conda: { skip: true } }, (stream) => {
201
201
  ondata(stream)
202
202
  })
203
203
 
package/kernel/index.js CHANGED
@@ -380,14 +380,14 @@ class Kernel {
380
380
  console.log("[initHome] Has the app launched?", this.launch_complete)
381
381
  if (this.launch_complete) {
382
382
  console.log("[initHome] 1 Give full permission")
383
+ clearInterval(interval)
383
384
  await this.bin.exec({
384
385
  sudo: true,
385
386
  message: `icacls ${this.homedir} /grant Users:(OI)(CI)F /T`
386
387
  }, (stream) => {
387
- ondata(stream)
388
+ process.stdout.write(stream.raw)
388
389
  })
389
390
  console.log("[initHome] 2 Give full permission done")
390
- clearInterval(interval)
391
391
  }
392
392
  }, 1000)
393
393
  }
package/kernel/shell.js CHANGED
@@ -672,36 +672,40 @@ class Shell {
672
672
 
673
673
 
674
674
  if (this.platform === "win32") {
675
- try {
676
- let vcvars_path = this.kernel.bin.vs_path_env.VCVARSALL_PATH
677
- if (vcvars_path) {
678
- const architecture = os.arch().toLowerCase(); // 'x64', 'ia32' (32-bit), etc.
679
- const armArchitecture = process.arch.toLowerCase(); // For ARM-based architectures (on Windows), process.arch might be 'arm64', 'arm', etc.
680
-
681
- // Map architectures to vcvarsall.bat argument
682
- let arg
683
- if (architecture === 'x64' || armArchitecture === 'arm64') {
684
- //arg = 'amd64'; // Native 64-bit architecture
685
- arg = 'x64';
686
- } else if (architecture === 'ia32' || armArchitecture === 'arm') {
687
- arg = 'x86'; // Native 32-bit architecture
688
- } else if (armArchitecture === 'x86_arm64') {
689
- arg = 'x86_arm64'; // ARM64 on x86
690
- } else if (armArchitecture === 'x86_arm') {
691
- arg = 'x86_arm'; // ARM on x86
692
- } else if (armArchitecture === 'amd64_arm64') {
693
- arg = 'amd64_arm64'; // ARM64 on x64
694
- } else if (armArchitecture === 'amd64_arm') {
695
- arg = 'amd64_arm'; // ARM on x64
696
- } else {
697
- console.log(`Unsupported arch: os.arch()=${architecture}, process.arch=${armArchitecture}`)
698
- }
675
+ if (params.vs && params.vs.skip) {
676
+ console.log("Skip VSVARSALL")
677
+ } else {
678
+ try {
679
+ let vcvars_path = this.kernel.bin.vs_path_env.VCVARSALL_PATH
680
+ if (vcvars_path) {
681
+ const architecture = os.arch().toLowerCase(); // 'x64', 'ia32' (32-bit), etc.
682
+ const armArchitecture = process.arch.toLowerCase(); // For ARM-based architectures (on Windows), process.arch might be 'arm64', 'arm', etc.
683
+
684
+ // Map architectures to vcvarsall.bat argument
685
+ let arg
686
+ if (architecture === 'x64' || armArchitecture === 'arm64') {
687
+ //arg = 'amd64'; // Native 64-bit architecture
688
+ arg = 'x64';
689
+ } else if (architecture === 'ia32' || armArchitecture === 'arm') {
690
+ arg = 'x86'; // Native 32-bit architecture
691
+ } else if (armArchitecture === 'x86_arm64') {
692
+ arg = 'x86_arm64'; // ARM64 on x86
693
+ } else if (armArchitecture === 'x86_arm') {
694
+ arg = 'x86_arm'; // ARM on x86
695
+ } else if (armArchitecture === 'amd64_arm64') {
696
+ arg = 'amd64_arm64'; // ARM64 on x64
697
+ } else if (armArchitecture === 'amd64_arm') {
698
+ arg = 'amd64_arm'; // ARM on x64
699
+ } else {
700
+ console.log(`Unsupported arch: os.arch()=${architecture}, process.arch=${armArchitecture}`)
701
+ }
699
702
 
700
- if (arg) {
701
- conda_activation.push(`"${vcvars_path}" ${arg} > nul 2>&1`)
703
+ if (arg) {
704
+ conda_activation.push(`"${vcvars_path}" ${arg} > nul 2>&1`)
705
+ }
706
+ } else {
707
+ // console.log('vc vars env doesnt exist')
702
708
  }
703
- } else {
704
- // console.log('vc vars env doesnt exist')
705
709
  }
706
710
  } catch (e) {
707
711
  console.log('vc vars setup', e)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.5.5",
3
+ "version": "3.5.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {