diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-05-24 00:00:27 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-05-24 12:00:24 +0530 |
| commit | 8cafa41ffeac7c8f0d4d9fe18e57dfa18419e159 (patch) | |
| tree | e7ce14efe3a01c3ea1b927c463b95a31a223e7a0 /justfile | |
| parent | 1c9803f593f7ad1a0eff2a7c579d384b8794b1ce (diff) | |
| download | sinthinator-main.tar.gz sinthinator-main.zip | |
Diffstat (limited to '')
| -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")"; |
