@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.
- package/install.js +3 -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
|
-
//
|
|
80
|
-
|
|
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") {
|