tauri build fails of large vdo

This commit is contained in:
polv committed 2026-06-26 00:25:35 +07:00
1 parent 87a3c1b641
commit f2f6c28989
3 files changed
+15 -9

No files matched your search

+7 -2
View File
@@ -121,8 +121,13 @@ async function processOne(inPath) {
const args = [...common, ...videoArgs, outPath];
console.log(`Compressing: ${inPath} -> ${outPath}`);
await runFFmpeg(args);
console.log(`Finished: ${outPath}`);
try {
await runFFmpeg(args);
console.log(`Finished: ${outPath}`);
} catch (e) {
console.log(`Failed: ${outPath}`);
await fs.unlink(outPath);
}
}
async function runWithLimit(items, limit, fn) {