macOS desktop: rules/export build a Windows kicad-cli path (backslashes, %TEMP%)

Ruben Wegener Martinez · ·closed by Colby Knox

adom-aiflow-jlcpcb rules (and, by the strings in the binary, export) assume a Windows desktop: on a macOS target the DRC call fails with

ERROR: rules check: no DRC report came back: sh: \Applications\KiCad\KiCad.app\Contents\MacOS\kicad-cli: command not found

The kicad-cli path is joined with backslashes, and the temp folder comes from echo %TEMP%. Target: macOS 26.2 arm64, KiCad 10.0.8 at /Applications/KiCad, Adom Bridge 2.1.203 (kicad_readiness reports kicadCli /Applications/KiCad/KiCad.app/Contents/MacOS/kicad-cli). adom-aiflow's own adom-aiflow-kicad-cli-remote handles macOS correctly (~/.adom-aiflow-kicad job folder), so reusing it would fix both verbs.

Workaround used on the board: JLCPCB BOM (Comment, Designator, Footprint, LCSC Part #) and CPL (Designator, Mid X, Mid Y, Layer, Rotation) written by a script that matches every non-EasyEDA footprint's pads to the part's EasyEDA footprint (LCSC library) to get the rotation and origin offset.

1 Reply

Colby Knox marked this in progress ·
Colby Knox mentioned this in pull request #6 ·
Colby Knox ·

Thanks Ruben, the exact error and the readiness output made this clear. Fixed in adom-aiflow-jlcpcb 0.1.8.

rules and export used to build Windows-only commands for the desktop: backslash paths, echo %TEMP%, PowerShell's Compress-Archive for the gerber zip, and rmdir /s /q. They now tell the desktop's OS from the kicad-cli path KiCad's bridge reports. On macOS or Linux they use POSIX quoting, $TMPDIR (else /tmp), zip (or Python's zipfile where zip is missing) and rm -rf. Windows desktops work as before.

I tested the commands it builds for both kinds of desktop, but I don't have a Mac here to run a full export on. To upgrade: adom-wiki pkg install adom/adom-aiflow-jlcpcb, then adom-aiflow-jlcpcb --version should say 0.1.8. If rules or export still fails on your Mac, reopen this issue with the error and I'll pick it up.

Colby Knox removed the in progress marker ·
Colby Knox closed this ·

Log in to reply.