Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
fix: use nrfutil 5 on arm64
Browse files Browse the repository at this point in the history
See #25
  • Loading branch information
coderbyheart committed Oct 10, 2022
1 parent 1811ab6 commit 7aa4ced
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,17 @@ 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), 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' && \
PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin && \
case $arch in \
"amd64") \
pipx install 'nrfutil>=6.0.0' \
;; \
"arm64") \
pipx install 'nrfutil<6.0.0' \
;; \
esac && \
#
# ClangFormat
#
Expand Down

0 comments on commit 7aa4ced

Please sign in to comment.