Skip to content

Commit

Permalink
Fixes #135 - Adds an edgecase to handle MacOS on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
jyksnw committed Jul 21, 2023
1 parent 9b129c5 commit 527ba6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jdk/client/adoptium.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ def get_download_url(

if arch is None:
arch = Architecture.detect()
arch = AdoptiumArchitecture.transform(arch)

# Handle edge case for MacOS w/Apple M1 or M2
if operating_system is OperatingSystem.MAC and arch == AdoptiumArchitecture.ARM:
arch = AdoptiumArchitecture.AARCH64

if jre:
image_type = ImageType.JRE
Expand Down

0 comments on commit 527ba6a

Please sign in to comment.