@swipt/cli 0.1.0-nightly.75 → 0.1.0-nightly.77
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.
- package/coredevice.mjs +26 -12
- package/package.json +4 -7
package/coredevice.mjs
CHANGED
|
@@ -441,18 +441,32 @@ export async function pushToContainer(device, id, source, destination) {
|
|
|
441
441
|
});
|
|
442
442
|
return;
|
|
443
443
|
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
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
|
+
}
|
|
456
470
|
}
|
|
457
471
|
|
|
458
472
|
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.
|
|
3
|
+
"version": "0.1.0-nightly.77",
|
|
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.
|
|
41
|
+
"@swipt/api": "0.1.0-nightly.77"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@swipt/server-darwin-arm64": "0.1.0-nightly.
|
|
45
|
-
"@swipt/server-darwin-x64": "0.1.0-nightly.
|
|
46
|
-
},
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"@bufbuild/protoc-gen-es": "^2.16.0"
|
|
44
|
+
"@swipt/server-darwin-arm64": "0.1.0-nightly.77",
|
|
45
|
+
"@swipt/server-darwin-x64": "0.1.0-nightly.77"
|
|
49
46
|
}
|
|
50
47
|
}
|