@swipt/cli 0.1.0-nightly.76 → 0.1.0-nightly.78

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/coredevice.mjs +12 -26
  2. package/package.json +4 -7
package/coredevice.mjs CHANGED
@@ -441,32 +441,18 @@ export async function pushToContainer(device, id, source, destination) {
441
441
  });
442
442
  return;
443
443
  }
444
- // dtfileserviced of the CoreDevice 477 Developer Disk Image creates the
445
- // missing parents of a copied file as root, but gives every directory of a
446
- // copied tree to mobile, so the file is copied inside a tree rooted at a
447
- // top-level directory of the container.
448
- const [root, ...rest] = destination.split("/");
449
- const work = fs.mkdtempSync(path.join(os.tmpdir(), "swipt-container-"));
450
- try {
451
- const tree = path.join(work, root);
452
- const target = path.join(tree, ...rest);
453
- fs.mkdirSync(path.dirname(target), { recursive: true });
454
- fs.copyFileSync(source, target);
455
- await devicectl([
456
- "device",
457
- "copy",
458
- "to",
459
- "--device",
460
- device.udid,
461
- "--source",
462
- tree,
463
- "--destination",
464
- root,
465
- ...containerOptions(id),
466
- ]);
467
- } finally {
468
- fs.rmSync(work, { recursive: true, force: true });
469
- }
444
+ await devicectl([
445
+ "device",
446
+ "copy",
447
+ "to",
448
+ "--device",
449
+ device.udid,
450
+ "--source",
451
+ source,
452
+ "--destination",
453
+ destination,
454
+ ...containerOptions(id),
455
+ ]);
470
456
  }
471
457
 
472
458
  export const provisioningProfiles = async (udid) =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swipt/cli",
3
- "version": "0.1.0-nightly.76",
3
+ "version": "0.1.0-nightly.78",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,13 +38,10 @@
38
38
  "typescript": "7.0.2"
39
39
  },
40
40
  "peerDependencies": {
41
- "@swipt/api": "0.1.0-nightly.76"
41
+ "@swipt/api": "0.1.0-nightly.78"
42
42
  },
43
43
  "optionalDependencies": {
44
- "@swipt/server-darwin-arm64": "0.1.0-nightly.76",
45
- "@swipt/server-darwin-x64": "0.1.0-nightly.76"
46
- },
47
- "devDependencies": {
48
- "@bufbuild/protoc-gen-es": "^2.16.0"
44
+ "@swipt/server-darwin-arm64": "0.1.0-nightly.78",
45
+ "@swipt/server-darwin-x64": "0.1.0-nightly.78"
49
46
  }
50
47
  }