improved export.sh

This commit is contained in:
cpu
2026-06-14 23:10:13 +02:00
parent e23a8ac222
commit 38faf6ccc9
2 changed files with 6 additions and 3 deletions

View File

@@ -18,10 +18,13 @@ mkdir -p "$GCODE_DIR"
# Export drill, front and back layers as gerber files.
echo "Exporting gerbers..."
kicad-cli pcb export drill -o "$GERBERS_DIR" "$PCB_FILE"
kicad-cli pcb export drill --generate-map -o "$GERBERS_DIR" "$PCB_FILE"
# kicad-cli pcb export gerbers -o "$GERBERS_DIR" -l Front "$PCB_FILE"
# kicad-cli pcb export gerbers -o "$GERBERS_DIR" -l Back "$PCB_FILE"
kicad-cli pcb export gerbers -o "$GERBERS_DIR" -l Edge.Cuts "$PCB_FILE"
kicad-cli pcb export svg -o "$GERBERS_DIR" -l Edge.Cuts \
--mode-multi --page-size-mode 1 --black-and-white \
--drill-shape-opt 0 --exclude-drawing-sheet "$PCB_FILE"
echo "Exporting Gcode for drilling and outline routing..."
docker run --rm -i -t \
@@ -41,7 +44,7 @@ python3 export_panel_outlines_gerber.py \
"$PCB_FILE"
echo "Exporting Gcode for panelized board's slot routing..."
# Use the 'User-Eco1' layer instead as it contains panelized board's slot outlines only.
# Use the 'User-Eco1' layer instead of 'Edge.Cuts' as it contains panelized board's slot outlines only.
docker run --rm -i -t \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/data" \