Skip to content

Commit

Permalink
Update build.sh to use local Freerouting
Browse files Browse the repository at this point in the history
  • Loading branch information
ceoloide committed Oct 6, 2023
1 parent 84cf350 commit 2533365
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ flags=--no-assembly
# Define the pcbdraw style
pcbdraw_style=set-black-hasl

if [ ! -e freerouting/freerouting-1.8.0.jar ]; then
curl https://github.com/freerouting/freerouting/releases/download/v1.8.0/freerouting-1.8.0.jar -L -o freerouting/freerouting-1.8.0.jar
fi

for plate in ${plates}
do
echo "\n\n>>>>>> Processing $plate <<<<<<\n\n"
Expand All @@ -34,17 +38,18 @@ do
if [ -e ergogen/output/pcbs/${board}.kicad_pcb ]; then
echo Export DSN
${container_cmd} run ${container_args} ghcr.io/inti-cmnb/kicad7_auto:latest kibot/export_dsn.py -b ergogen/output/pcbs/${board}.kicad_pcb -o ergogen/output/pcbs/${board}.dsn
${container_cmd} run ${container_args} ghcr.io/inti-cmnb/kicad7_auto:1.6.2 kibot -b ergogen/output/pcbs/${board}.kicad_pcb -c kibot/boards.kibot.yaml
${container_cmd} run ${container_args} ghcr.io/inti-cmnb/kicad7_auto:latest kibot -b ergogen/output/pcbs/${board}.kicad_pcb -c kibot/boards.kibot.yaml
fi
if [ -e ergogen/output/pcbs/${board}.dsn ]; then
echo Autoroute PCB
java -jar freerouting/freerouting-1.8.0.jar -de ergogen/output/pcbs/${board}.dsn -do ergogen/output/pcbs/${board}.ses -dr freerouting/corney_island.rules
# ${container_cmd} run ${container_args} soundmonster/freerouting_cli:v0.1.0 java -jar /opt/freerouting_cli.jar -de ergogen/output/pcbs/${board}.dsn -do ergogen/output/pcbs/${board}.ses -dr freerouting/corney_island.rules
fi
if [ -e ergogen/output/pcbs/${board}.ses ]; then
echo "Import SES"
${container_cmd} run ${container_args} soundmonster/kicad-automation-scripts:latest /usr/lib/python2.7/dist-packages/kicad-automation/pcbnew_automation/import_ses.py ergogen/output/pcbs/${board}.kicad_pcb ergogen/output/pcbs/${board}.ses --output-file ergogen/output/pcbs/${board}_routed.kicad_pcb
fi
if [ -e ergogen/output/pcbs/${board}_routed.kicad_pcb ]; then
${container_cmd} run ${container_args} ghcr.io/inti-cmnb/kicad7_auto:latest kibot -b ergogen/output/pcbs/${board}_routed.kicad_pcb -c kibot/boards.kibot.yaml
fi
# if [ -e ergogen/output/pcbs/${board}.dsn ]; then
# echo Autoroute PCB
# ${container_cmd} run ${container_args} soundmonster/freerouting_cli:v0.1.0 java -jar /opt/freerouting_cli.jar -de ergogen/output/pcbs/${board}.dsn -do ergogen/output/pcbs/${board}.ses
# fi
# if [ -e ergogen/output/pcbs/${board}.ses ]; then
# echo "Import SES"
# ${container_cmd} run ${container_args} soundmonster/kicad-automation-scripts:latest /usr/lib/python2.7/dist-packages/kicad-automation/pcbnew_automation/import_ses.py ergogen/output/pcbs/${board}.kicad_pcb ergogen/output/pcbs/${board}.ses --output-file ergogen/output/pcbs/${board}_routed.kicad_pcb
# fi
# if [ -e ergogen/output/pcbs/${board}_routed.kicad_pcb ]; then
# ${container_cmd} run ${container_args} ghcr.io/inti-cmnb/kicad7_auto:1.6.2 kibot -b ergogen/output/pcbs/${board}_routed.kicad_pcb -c kibot/boards.kibot.yaml
# fi
done

0 comments on commit 2533365

Please sign in to comment.