This repository was archived by the owner on Dec 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ if [ ! -v DOCKER_CMD ]; then
99 DOCKER_CMD=" docker run --rm -it -v ${DIR} :/kicad-project productize/kicad-automation-scripts"
1010fi
1111
12+ LAYERS=" B.Cu Cmts.User Edge.Cuts F.CrtYd F.Cu F.Fab F.SilkS"
13+
1214TEMP_PATH=$( mktemp -d " ${DIR} /kicad-automation-XXXXXX" )
1315
1416TEMP_PATH_IN_DOCKER=${TEMP_PATH/ $DIR / \/ kicad-project}
@@ -31,11 +33,11 @@ ${DOCKER_CMD} python -m kicad-automation.pcbnew_automation.run_drc /kicad-projec
3133cp ${TEMP_PATH} /drc/drc_result.rpt ${DIR} /build/${PROJECT} .drc
3234
3335echo " Generating Gebers..."
34- ${DOCKER_CMD} python -m kicad-automation.pcbnew_automation.plot /kicad-project/${PROJECT} .kicad_pcb ${TEMP_PATH_IN_DOCKER} /gerbers
36+ ${DOCKER_CMD} python -m kicad-automation.pcbnew_automation.plot /kicad-project/${PROJECT} .kicad_pcb ${TEMP_PATH_IN_DOCKER} /gerbers ${LAYERS}
3537cp ${TEMP_PATH} /gerbers/${PROJECT} _gerbers.zip ${DIR} /build/${PROJECT} -gerbers.zip
3638
3739echo " Plotting PCB as PDF..."
38- ${DOCKER_CMD} python -m kicad-automation.pcbnew_automation.plot -f pdf /kicad-project/${PROJECT} .kicad_pcb ${TEMP_PATH_IN_DOCKER} /pcb
40+ ${DOCKER_CMD} python -m kicad-automation.pcbnew_automation.plot -f pdf /kicad-project/${PROJECT} .kicad_pcb ${TEMP_PATH_IN_DOCKER} /pcb ${LAYERS}
3941cp ${TEMP_PATH} /pcb/${PROJECT} .pdf ${DIR} /build/${PROJECT} -pcb.pdf
4042
4143echo " Now run: sudo rm -rf ${TEMP_PATH} "
You can’t perform that action at this time.
0 commit comments