fix: canvas image/video download - fix data URL parsing in cvDownloadPreview (v1.5.21, hot 1.5.23)
This commit is contained in:
@@ -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 "));
|
||||
|
||||
Reference in New Issue
Block a user