Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit c7c0463

Browse files
committed
Only plot relevant layers.
1 parent 2ace657 commit c7c0463

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

release.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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"
1010
fi
1111

12+
LAYERS="B.Cu Cmts.User Edge.Cuts F.CrtYd F.Cu F.Fab F.SilkS"
13+
1214
TEMP_PATH=$(mktemp -d "${DIR}/kicad-automation-XXXXXX")
1315

1416
TEMP_PATH_IN_DOCKER=${TEMP_PATH/$DIR/\/kicad-project}
@@ -31,11 +33,11 @@ ${DOCKER_CMD} python -m kicad-automation.pcbnew_automation.run_drc /kicad-projec
3133
cp ${TEMP_PATH}/drc/drc_result.rpt ${DIR}/build/${PROJECT}.drc
3234

3335
echo "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}
3537
cp ${TEMP_PATH}/gerbers/${PROJECT}_gerbers.zip ${DIR}/build/${PROJECT}-gerbers.zip
3638

3739
echo "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}
3941
cp ${TEMP_PATH}/pcb/${PROJECT}.pdf ${DIR}/build/${PROJECT}-pcb.pdf
4042

4143
echo "Now run: sudo rm -rf ${TEMP_PATH}"

0 commit comments

Comments
 (0)