Skip to content

Commit

Permalink
Install AMD64 binary on Apple Silicon Macs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru committed Dec 9, 2024
1 parent c17dca2 commit e189159
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions vendor/cfssl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ export PACKAGE_REPO_NAME = cfssl
export DOWNLOAD_URL = $(PACKAGE_REPO_URL)/releases/download/v$(PACKAGE_VERSION)/$(PACKAGE_NAME)_$(PACKAGE_VERSION)_$(OS)_$(ARCH)
export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary

# arm64 not supported
export PACKAGE_ARCHS_DISABLED = arm64
# arm64 not supported on MacOS, but OK to install AMD64 version
ifeq ($(OS),darwin)
ARCH = amd64
endif
# export PACKAGE_ARCHS_DISABLED = arm64

install:
$(call download_binary)
Expand Down
7 changes: 5 additions & 2 deletions vendor/cfssljson/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ export PACKAGE_REPO_NAME = cfssl
export DOWNLOAD_URL = $(PACKAGE_REPO_URL)/releases/download/v$(PACKAGE_VERSION)/$(PACKAGE_NAME)_$(PACKAGE_VERSION)_$(OS)_$(ARCH)
export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary

# arm64 not supported
export PACKAGE_ARCHS_DISABLED = arm64
# arm64 not supported on MacOS, but OK to install AMD64 version
ifeq ($(OS),darwin)
ARCH = amd64
endif
# export PACKAGE_ARCHS_DISABLED = arm64

install:
$(call download_binary)
Expand Down

0 comments on commit e189159

Please sign in to comment.