Skip to content

Commit

Permalink
Fix zap_download.py for new naming scheme as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed May 17, 2023
1 parent b322970 commit efb028e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/tools/zap/zap_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,15 @@ def _SetupReleaseZap(install_directory: str, zap_version: str):
else:
raise Exception('Unknown platform - do not know what zip file to download.')

url = f"https://github.com/project-chip/zap/releases/download/{zap_version}/zap-{zap_platform}.zip"
arch = os.uname().machine
if arch == 'arm64':
zap_arch = 'arm64'
elif arch == 'x86_64':
zap_arch = 'x64'
else:
raise Exception(f'Unknown architecture "${arch}" - do not know what zip file to download.')

url = f"https://github.com/project-chip/zap/releases/download/{zap_version}/zap-{zap_platform}-{zap_arch}.zip"

logging.info("Fetching: %s", url)

Expand Down

0 comments on commit efb028e

Please sign in to comment.