fix: make CAD conversion recovery deterministic
Some checks failed
ci / test (macos-latest, 3.10) (push) Has been cancelled
ci / test (macos-latest, 3.12) (push) Has been cancelled
ci / test (ubuntu-latest, 3.10) (push) Has been cancelled
ci / test (ubuntu-latest, 3.12) (push) Has been cancelled
ci / test (windows-latest, 3.10) (push) Has been cancelled
ci / test (windows-latest, 3.12) (push) Has been cancelled
ci / browser-smoke (push) Has been cancelled

This commit is contained in:
2026-07-21 13:49:18 +08:00
parent 9d7d3cb973
commit a3be794e19
7 changed files with 159 additions and 6 deletions

View File

@@ -30,7 +30,8 @@ Tool discovery is environment variable, PATH, then platform defaults:
ODA requires existing absolute input/output directories. On macOS the command shape is `ODAFileConverter <abs_in_dir> <abs_out_dir> ACAD2004 DXF 0 1 "*.dwg"`; create both directories first. Bad arguments are often reported only through a GUI dialog, with empty stderr, and the process may return exit 0 while producing nothing. Treat “exit 0 + no DXF” as failure, check the screen for a blocked dialog, and keep the script's ASCII staging plus produced-file verification.
If native converters are unavailable, use the tested WASM bridge:
If native converters are unavailable, `--converter auto` uses the packaged WASM bridge after `npm install`.
For diagnosis or a manual one-file conversion, the equivalent commands are:
```bash
npm install --prefix work/vendor-js @mlightcad/libredwg-web