pi-flash 0.5.0 → 0.5.2
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/bin/lib.js +3 -0
- package/package.json +1 -1
package/bin/lib.js
CHANGED
|
@@ -411,6 +411,9 @@ function extractZip(zipPath, destDir) {
|
|
|
411
411
|
const args = ["-xf", zipPath, "-C", destDir];
|
|
412
412
|
const quiet = { stdio: ["ignore", "pipe", "pipe"], encoding: "utf8" };
|
|
413
413
|
if (process.platform === "win32") {
|
|
414
|
+
// 条目名无需任何特判:release.sh 产物非 ASCII 名一律 EFS/UTF-8
|
|
415
|
+
// (zip_name_check.mjs 硬门禁),bsdtar / Expand-Archive 都按标志正确解
|
|
416
|
+
// (0.5.0 曾发 GBK 无标志名,Rust 更新器按 CP437 解出乱码文件名)。
|
|
414
417
|
// 首选系统自带 bsdtar 的绝对路径(Win10 1803+ 支持 zip)。不能裸调 PATH 里的
|
|
415
418
|
// "tar":git-bash 环境会抢到 GNU tar,而它把 "D:" 当远程主机名直接报错。
|
|
416
419
|
const sysTar = process.env.SystemRoot
|
package/package.json
CHANGED