From 8ebad9188c8b2a8bc4b0ac1647d824db7aaa80bd Mon Sep 17 00:00:00 2001 From: David Holdeman Date: Fri, 12 Apr 2024 15:56:53 -0500 Subject: [PATCH 1/2] install kicad 8 --- .github/workflows/create-board.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-board.yaml b/.github/workflows/create-board.yaml index af404d8..1e7ba12 100644 --- a/.github/workflows/create-board.yaml +++ b/.github/workflows/create-board.yaml @@ -39,7 +39,7 @@ jobs: - name: Install kicad run: | - sudo add-apt-repository --yes ppa:kicad/kicad-7.0-releases + sudo add-apt-repository --yes ppa:kicad/kicad-8.0-releases sudo apt-get install kicad pip install kicad-netlist-reader From 1cc79bec8c438d7a05ef36f1a818c5a984a02696 Mon Sep 17 00:00:00 2001 From: David Holdeman Date: Fri, 12 Apr 2024 16:14:24 -0500 Subject: [PATCH 2/2] Turn tabs into spaces for Kicad 8 --- kicad/bin/export.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kicad/bin/export.sh b/kicad/bin/export.sh index aea7fcd..d3edf41 100755 --- a/kicad/bin/export.sh +++ b/kicad/bin/export.sh @@ -51,8 +51,8 @@ echo Export positions file kicad-cli pcb export pos --format csv --units mm --use-drill-file-origin --bottom-negate-x "$PCB_FILE" -o "gerber/$IN-all-pos.csv" echo Getting Drill/Place origin from PCB -X=$(grep "aux_axis_origin" "$PCB_FILE" | tr -s ' ' | cut -d ' ' -f 3) -Y=$(grep "aux_axis_origin" "$PCB_FILE" | tr -s ' ' | cut -d ' ' -f 4 | tr -d ')') +X=$(grep "aux_axis_origin" "$PCB_FILE" | tr ' ' ' ' | tr -s ' ' | cut -d ' ' -f 3) +Y=$(grep "aux_axis_origin" "$PCB_FILE" | tr ' ' ' ' | tr -s ' ' | cut -d ' ' -f 4 | tr -d ')') if [ ! "$Y" ]; then echo "aux_axis_origin is missing in the PCB file" exit -1