Skip to content

Commit 0f5af64

Browse files
[nrf noup] Added a proper package name for MAC with ARM CPUs.
Now the script downloads the zap-mac-arm64.zip package if the ARM64 machine is detected for Darwin OS. Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
1 parent f2bba3a commit 0f5af64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/west/zap_common.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ def unzip(zip: Path, out: Path):
142142
self.zap_cli_exe = 'zap-cli.exe'
143143
self.unzip = unzip
144144
elif self.current_os == 'Darwin':
145-
self.package = 'zap-mac-x64'
145+
if platform.machine() == 'arm64':
146+
self.package = 'zap-mac-arm64'
147+
else:
148+
self.package = 'zap-mac-x64'
146149
self.zap_exe = 'zap.app/Contents/MacOS/zap'
147150
self.zap_cli_exe = 'zap-cli'
148151
self.unzip = unzip_darwin

0 commit comments

Comments
 (0)