diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-05-16 11:32:01 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-05-16 11:32:01 +0530 |
| commit | 7f76271c61cd6d3ef66520d85f824261dc2210db (patch) | |
| tree | a059aa0baa31fc7bf48c8beaac1e315d3b21d975 /justfile | |
| parent | 8e458857069adbb2cbc122c1bb8d01df37cd2bbe (diff) | |
| download | sinthinator-7f76271c61cd6d3ef66520d85f824261dc2210db.tar.gz sinthinator-7f76271c61cd6d3ef66520d85f824261dc2210db.zip | |
Just the tip
Diffstat (limited to '')
| -rw-r--r-- | justfile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/justfile b/justfile new file mode 100644 index 0000000..eabb06b --- /dev/null +++ b/justfile @@ -0,0 +1,42 @@ +OUTDIR := "output" +KICAD_CLI := "kicad-cli" + +open: + kicad pantsonfyre.kicad_pro + +gerbers: clean gen-gerbers gen-drill zip-gerbers + +svg: svg-schematic svg-pcb + +drc: + {{KICAD_CLI}} pcb drc --output --all-track-errors --schematic-parity --format=json --severity-all ./pantsonfyre.kicad_pcb + +@clean: + rm -rf "{{OUTDIR}}" + +zip-gerbers: + cd "{{OUTDIR}}/gerbers" && zip -r pantsonfyre-gerbers.zip ./pantsonfyre + +svg-schematic: + {{KICAD_CLI}} sch export svg -t arcana --output "{{OUTDIR}}" ./pantsonfyre.kicad_sch + +svg-pcb: + {{KICAD_CLI}} pcb export svg --layers '*' --mode-single -o pcb.svg --output "{{OUTDIR}}" ./pantsonfyre.kicad_pcb + +bom: + {{KICAD_CLI}} sch export bom pantsonfyre.kicad_sch -o ../output/pantsonfyre-bom.csv + +@gen-gerbers: + {{KICAD_CLI}} pcb export gerbers \ + -l B.Cu,B.Mask,B.Silkscreen,B.Paste,F.Cu,F.Mask,F.Silkscreen,F.Paste,Edge.Cuts \ + --precision 6 --no-x2 \ + --output "{{OUTDIR}}/gerbers/pantsonfyre" \ + ./pantsonfyre.kicad_pcb + +@gen-drill: + {{KICAD_CLI}} pcb export drill \ + --format excellon --drill-origin absolute \ + --excellon-zeros-format decimal --excellon-oval-format alternate --excellon-units mm --excellon-separate-th \ + --generate-map --map-format gerberx2 \ + --output "{{OUTDIR}}/gerbers/pantsonfyre" \ + ./pantsonfyre.kicad_pcb |
