fix: canvas image/video download - fix data URL parsing in cvDownloadPreview (v1.5.21, hot 1.5.23)

This commit is contained in:
mac
2026-07-20 08:48:56 +08:00
parent 42e23663ee
commit aadd2b04ae
28 changed files with 5881 additions and 329 deletions
+2 -2
View File
@@ -23,9 +23,9 @@ const OWNER = "mhgmh", REPO = "codex-market-app";
const API = `https://up.tokendun.cc/api/v1/repos/${OWNER}/${REPO}`;
const DIST = path.join(ROOT, "dist");
// 要上传的产物:dmg/zip/blockmap + latest-mac.yml
// 要上传的产物:dmg/zip/exe/blockmap + latest*.yml(mac 的 latest-mac.yml + win 的 latest.yml)
const files = fs.readdirSync(DIST).filter((f) =>
/\.(dmg|zip)(\.blockmap)?$/.test(f) || /^latest.*\.yml$/.test(f)
/\.(dmg|zip|exe)(\.blockmap)?$/.test(f) || /^latest.*\.yml$/.test(f)
);
if (!files.length) { console.error("dist/ 下没有可上传的产物"); process.exit(1); }
console.log(`待上传 ${files.length} 个文件:\n ` + files.join("\n "));