@mediaio/cli 0.1.5-ci.67 → 0.1.5-ci.69

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/install.js +3 -2
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -76,8 +76,9 @@ function download(targetUrl, dest, redirects = 0) {
76
76
  console.log(`@mediaio/cli: downloading ${url}`);
77
77
  await download(url, tarballPath);
78
78
  console.log(`downloaded ${url}`);
79
- // pipe via stdin: bsdtar on Windows misparses "-f" paths under "@scope" dirs as user@host remote syntax
80
- execFileSync("tar", ["-xz", "-C", vendorDir, binName], {
79
+ // 通过 stdin 传入压缩包:Windows bsdtar 会把含 "C:" "@scope" "-f <路径>" 误判为 user@host 远程语法;
80
+ // 必须显式指定 "-f -" 从标准输入读取,否则 bsdtar 会回退到默认磁带设备 \\.\tape0 并报错
81
+ execFileSync("tar", ["-xzf", "-", "-C", vendorDir, binName], {
81
82
  input: fs.readFileSync(tarballPath),
82
83
  });
83
84
  if (platform !== "windows") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediaio/cli",
3
- "version": "0.1.5-ci.67",
3
+ "version": "0.1.5-ci.69",
4
4
  "description": "Media.io AI CLI — generate images and videos from the terminal.",
5
5
  "bin": {
6
6
  "mediaio": "bin/mediaio.js",