Skip to content

Commit

Permalink
copy default fp-lib-table and sym-lib-table for rule checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna-f1sh committed Feb 26, 2024
1 parent 76dc3d1 commit ccbaf7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN add-apt-repository --yes ppa:kicad/kicad-8.0-releases && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 245D5502FAD7A805

# Install KiCad 8.0
RUN apt update && apt install kicad -y
RUN apt update && apt install --install-recommends kicad -y

# Copy kicad-makefile and export environment location
COPY . kicad-makefile/
Expand All @@ -34,6 +34,11 @@ ENV BOM_CMD='python3 -m kibom'
# Add pcbnew module to PYTHONPATH
ENV PYTHONPATH=${PYTHONPATH}:/.kicad/scripting/plugins:/usr/share/kicad/scripting/plugins

# Copy default fp-lib-table to user home kicad config
RUN mkdir -p ~/.config/kicad/8.0 && \
cp /usr/share/kicad/template/fp-lib-table ~/.config/kicad/8.0/fp-lib-table && \
cp /usr/share/kicad/template/sym-lib-table ~/.config/kicad/8.0/sym-lib-table

# Set env to show running in container
ENV KICADMK_DOCKER=1

Expand Down
2 changes: 1 addition & 1 deletion Kicad.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# * Project generated data will be output to '$(PROJECT_ROOT)/output/X' by default
# * Project distributables and production .zip datapacks will be output to '$(PROJECT_ROOT)/output/dist' and '$(PROJECT_ROOT)/output/prod' by default
override KICADMK_VER = 1.1
override KICADMK_VER = 1.2

shell_output =
KICADMK_QUIET ?= 0
Expand Down

0 comments on commit ccbaf7f

Please sign in to comment.