huashu-motion 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -264,7 +264,8 @@ export async function renderOm(project, { fps, out, format = 'mp4', transparent
264
264
  onLog(`cpu browsers ${rows.filter((r) => groups.has(r[0])).reduce((a, r) => a + sec(r[1]), 0).toFixed(1)}s`);
265
265
  }
266
266
  await Promise.all(films.map((f) => f.close({ fast: true })));
267
- rmSync(tmp, { recursive: true, force: true });
267
+ // Windows: a browser can hold files in tmp for a moment after close(); retry, and never let cleanup hide the real result
268
+ try { rmSync(tmp, { recursive: true, force: true, maxRetries: 10, retryDelay: 300 }); } catch (err) { onWarn(`could not remove ${tmp}: ${err.code || err.message}`); }
268
269
  forgetTmp();
269
270
  }
270
271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huashu-motion",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Make motion graphics with your own coding agent — point at the frame to change it. Open, local, with sound.",
5
5
  "type": "module",
6
6
  "bin": { "om": "cli/om.js", "huashu-motion": "cli/om.js" },
@@ -5,7 +5,7 @@ metadata:
5
5
  author: "花叔"
6
6
  homepage: "https://github.com/alchaincyf"
7
7
  repository: "https://github.com/alchaincyf/huashu-motion"
8
- version: "0.4.0"
8
+ version: "0.4.1"
9
9
  ---
10
10
 
11
11
  # huashu-motion