pinokiod 1.3.85 → 1.3.86

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.
@@ -88,30 +88,16 @@ create_default_packages:
88
88
  ondata({ raw: `running installer: ${installer}...\r\n` })
89
89
 
90
90
  let cmd
91
- let is_sudo
92
91
  if (this.kernel.platform === "win32") {
93
- is_sudo = true
94
- await new Promise((resolve, reject) => {
95
- setTimeout(() => {
96
- resolve()
97
- }, 1000)
98
- })
99
- cmd = `start /wait "" "${path.resolve(this.kernel.homedir, 'bin', installer)}" /InstallationType=JustMe /RegisterPython=0 /S /D=${install_path}`
92
+ cmd = `start /wait ${installer) /InstallationType=JustMe /RegisterPython=0 /S /D=${install_path}`
100
93
  } else {
101
- is_sudo = false
102
94
  cmd = `bash ${installer} -b -p ${install_path}`
103
95
  }
104
96
  ondata({ raw: `${cmd}\r\n` })
105
97
  ondata({ raw: `path: ${this.kernel.bin.path()}\r\n` })
106
- if (is_sudo) {
107
- await this.kernel.bin.exec({ sudo: true, message: cmd, conda: { skip: true } }, (stream) => {
108
- ondata(stream)
109
- })
110
- } else {
111
- await this.kernel.bin.exec({ message: cmd, conda: { skip: true } }, (stream) => {
112
- ondata(stream)
113
- })
114
- }
98
+ await this.kernel.bin.exec({ message: cmd, conda: { skip: true } }, (stream) => {
99
+ ondata(stream)
100
+ })
115
101
  //// await this.activate()
116
102
  // await fs.promises.writeFile(this.kernel.bin.path('miniconda/condarc'), `channels:
117
103
  // - conda-forge
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.3.85",
3
+ "version": "1.3.86",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {