tauri build fails of large vdo
This commit is contained in:
1 parent
87a3c1b641
commit
f2f6c28989
3 files changed
+15
-9
No files matched your search
+7
-2
@@ -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}`);
|
||||||
await runFFmpeg(args);
|
try {
|
||||||
console.log(`Finished: ${outPath}`);
|
await runFFmpeg(args);
|
||||||
|
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
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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": [
|
||||||
|
|||||||
Reference in new issue
Block a user