No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

generate_fab.sh 849B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. cd "$(dirname "$0")"
  3. INFILE="dispensy.kicad_pcb"
  4. INFILE_SCH="dispensy.kicad_sch"
  5. OUTDIR="fabrication"
  6. OUTZIP="fab"
  7. echo "Creating output directory"
  8. rm -rf $OUTDIR
  9. mkdir -p $OUTDIR
  10. echo "Exporting drill files"
  11. #kicad-cli pcb export drill -o $OUTDIR/ --format excellon --generate-map --map-format pdf $INFILE
  12. kicad-cli pcb export drill -o $OUTDIR/ --format gerber --generate-map --map-format gerberx2 $INFILE
  13. echo "Exporting gerber files"
  14. #kicad-cli pcb export gerbers -o $OUTDIR/ $INFILE
  15. kicad-cli pcb export gerbers -o $OUTDIR/ -l F.Cu,B.Cu,F.Mask,B.Mask,F.Paste,B.Paste,F.Silkscreen,B.Silkscreen,Edge.Cuts $INFILE
  16. echo "Exporting BOM files"
  17. kicad-cli sch export python-bom -o $OUTDIR/bom.xml $INFILE_SCH
  18. # TODO convert BOM XML to proper format for JLCPCB
  19. echo "Compressing archive"
  20. rm -rf $OUTZIP.zip
  21. zip -r $OUTZIP fabrication