diff options
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -10,7 +10,7 @@ hw: gerbers: clean gen-gerbers gen-drill zip-gerbers -svg: svg-schematic svg-pcb +export: svg-schematic svg-pcb gerbers drc: {{KICAD_CLI}} pcb drc --output --all-track-errors --schematic-parity --format=json --severity-all "{{HWDIR}}/sinthinator.kicad_pcb" @@ -22,12 +22,14 @@ zip-gerbers: cd "{{HWOUTDIR}}/gerbers" && zip -r sinthinator-gerbers.zip ./sinthinator svg-schematic: - {{KICAD_CLI}} sch export svg --output . "{{HWDIR}}/sinthinator.kicad_sch" - inkscape sinthinator.svg -w 1920 --export-area-page -o sinthinator.png + {{KICAD_CLI}} sch export svg --output media "{{HWDIR}}/sinthinator.kicad_sch" + inkscape media/sinthinator.svg -w 2560 --export-area-page -o media/sinthinator.png svg-pcb: - {{KICAD_CLI}} pcb render "{{HWDIR}}/sinthinator.kicad_pcb" -w 800 --background default --side top -o pcb-top.png - {{KICAD_CLI}} pcb render "{{HWDIR}}/sinthinator.kicad_pcb" -w 800 --side bottom -o pcb-bottom.png + {{KICAD_CLI}} pcb render "{{HWDIR}}/sinthinator.kicad_pcb" -w 800 --background default --side top -o media/pcb-top.png + {{KICAD_CLI}} pcb render "{{HWDIR}}/sinthinator.kicad_pcb" -w 800 --side bottom -o media/pcb-bottom.png + {{KICAD_CLI}} pcb export svg "{{HWDIR}}/sinthinator.kicad_pcb" --layers 'F.Cu' -o media/pcb-layer-f.svg + {{KICAD_CLI}} pcb export svg "{{HWDIR}}/sinthinator.kicad_pcb" --layers 'B.Cu' -o media/pcb-layer-b.svg bom: {{KICAD_CLI}} sch export bom "{{HWDIR}}/sinthinator.kicad_sch" -o "{{HWOUTDIR}}/sinthinator-bom.csv" @@ -41,14 +43,15 @@ bom: @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 \ + --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 "{{HWOUTDIR}}/gerbers/sinthinator" \ "{{HWDIR}}/sinthinator.kicad_pcb" lion search: #!/usr/bin/env sh + set -eu sel=$(curl -XGET 'https://www.lioncircuits.com/api/searchsuggestion?q={{search}}' | jq '.results.Products | map(.mpn + "\t| " + .description + "\t| " + .datasheet + " |") | join("\n")' -r | fzf) echo "$sel"; echo "https://www.lioncircuits.com/parts/$(echo "$sel")"; |
