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
+13 -7

No files matched your search

+5
View File
@@ -121,8 +121,13 @@ async function processOne(inPath) {
const args = [...common, ...videoArgs, outPath]; const args = [...common, ...videoArgs, outPath];
console.log(`Compressing: ${inPath} -> ${outPath}`); console.log(`Compressing: ${inPath} -> ${outPath}`);
try {
await runFFmpeg(args); await runFFmpeg(args);
console.log(`Finished: ${outPath}`); console.log(`Finished: ${outPath}`);
} catch (e) {
console.log(`Failed: ${outPath}`);
await fs.unlink(outPath);
}
} }
async function runWithLimit(items, limit, fn) { async function runWithLimit(items, limit, fn) {
+6 -5
View File
@@ -20,11 +20,12 @@
}, },
"scripts": { "scripts": {
"dev": "tauri dev", "dev": "tauri dev",
"browser": "concurrently 'pnpm:b:*'", "build": "tauri build",
"b:server": "node server.js", "browser": "concurrently 'pnpm:browser:*'",
"b:vite": "vitepress dev docs --open", "browser:server": "node server.js",
"vite": "vitepress dev docs", "browser:vite": "vitepress dev docs --open",
"build": "vitepress build docs", "vite-dev": "vitepress dev docs",
"vite-build": "vitepress build docs",
"preview": "vitepress preview docs" "preview": "vitepress preview docs"
} }
} }
+2 -2
View File
@@ -6,8 +6,8 @@
"build": { "build": {
"frontendDist": "../docs/.vitepress/dist", "frontendDist": "../docs/.vitepress/dist",
"devUrl": "http://localhost:5173", "devUrl": "http://localhost:5173",
"beforeDevCommand": "pnpm vite", "beforeDevCommand": "pnpm vite-dev",
"beforeBuildCommand": "pnpm build" "beforeBuildCommand": "pnpm vite-build"
}, },
"app": { "app": {
"windows": [ "windows": [