Skip to content

Commit

Permalink
fix: no nrfutil on arm64 (#29)
Browse files Browse the repository at this point in the history
Disable nrfutil on arm64 (e.g. Apple M1/M2 Silicon) because it is not supported.

See #25
  • Loading branch information
coderbyheart authored Oct 10, 2022
1 parent 1811ab6 commit 9d3444f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ RUN mkdir /workdir/project && \
python3 -m pip install --ignore-installed -U PyYAML && \
#
# Isolated command line tools
# No nrfutil 6+ release for arm64 (M1/M2 Macs) and Python 3, yet: https://github.com/NordicSemiconductor/pc-ble-driver-py/issues/227
#
PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin \
pipx install 'nrfutil>=6.0.0' && \
case $arch in \
"amd64") \
PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin \
pipx install 'nrfutil>=6.0.0' \
;; \
esac && \
#
# ClangFormat
#
Expand Down

0 comments on commit 9d3444f

Please sign in to comment.