pinokiod 0.1.9 → 0.1.11

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.
@@ -240,7 +240,7 @@ class Bin {
240
240
  let lines
241
241
  if (conda_exists) {
242
242
  res = await this.exec({ message: `conda list`, conda: "base" }, (stream) => {
243
- console.log("conda list check", { stream })
243
+ // console.log("conda list check", { stream })
244
244
  })
245
245
 
246
246
  console.log("CONDA", res.response)
@@ -268,7 +268,7 @@ class Bin {
268
268
  console.log("## check pip")
269
269
  start = false
270
270
  res = await this.exec({ message: `pip list` }, (stream) => {
271
- console.log("pip list check", { stream })
271
+ // console.log("pip list check", { stream })
272
272
  })
273
273
  console.log("PIP", res.response)
274
274
  lines = res.response.split(/[\r\n]+/)
@@ -300,7 +300,7 @@ class Bin {
300
300
  if (brew_exists) {
301
301
  start = false
302
302
  res = await this.exec({ message: `brew list -1` }, (stream) => {
303
- console.log("brew list check", { stream })
303
+ // console.log("brew list check", { stream })
304
304
  })
305
305
  console.log("BREW", res.response)
306
306
  lines = res.response.split(/[\r\n]+/).slice(0, -1) // ignore last line since it's the prompt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -877,7 +877,6 @@ class Server {
877
877
  let item = items[i]
878
878
  let p = path.resolve(uri, item.name, "pinokio.js")
879
879
  let config = (await this.kernel.loader.load(p)).resolved
880
- console.log("## CONFIG", config)
881
880
  if (config) {
882
881
  if (config.pinokiod) {
883
882
  // if the script contains a 'pinokiod' field, compare it against the current version
@@ -927,7 +926,6 @@ class Server {
927
926
 
928
927
  }
929
928
  }
930
- console.log({ running, notRunning })
931
929
 
932
930
  running = this.getItems(running, meta, p)
933
931
  notRunning = this.getItems(notRunning, meta, p)
@@ -1041,7 +1039,6 @@ class Server {
1041
1039
  if (menuitem.href && menuitem.params) {
1042
1040
  menuitem.href = menuitem.href + "?" + new URLSearchParams(menuitem.params).toString();
1043
1041
  }
1044
- console.log("menuitem", menuitem)
1045
1042
 
1046
1043
 
1047
1044
 
@@ -1282,7 +1279,12 @@ class Server {
1282
1279
  if (existing_home) {
1283
1280
  // if the home is already set, move
1284
1281
  console.log("RUNNING MV")
1285
- const mv_cmd = `${(this.kernel.platform === "win32" ? "move" : "mv")} ${existing_home} ${new_home}`
1282
+ let mv_cmd
1283
+ if (this.kernel.platform === "win32") {
1284
+ mv_cmd = `robocopy ${existing_home} ${new_home} /E /MOVE`
1285
+ } else {
1286
+ mv_cmd = `mv ${existing_home} ${new_home}`
1287
+ }
1286
1288
  await this.sudo_exec(mv_cmd, existing_home)
1287
1289
  console.log("FINISHED MV")
1288
1290
 
@@ -1360,7 +1362,7 @@ class Server {
1360
1362
  }
1361
1363
 
1362
1364
  // configure from kernel.store
1363
- this.syncConfig()
1365
+ await this.syncConfig()
1364
1366
 
1365
1367
  // initialize kernel
1366
1368
  await this.kernel.init()