Skip to content

Commit

Permalink
chore: allow build on mac os environment
Browse files Browse the repository at this point in the history
download the right yq binary.
  • Loading branch information
ricardomaraschini committed Oct 4, 2023
1 parent 59acad4 commit 39a5c29
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
VERSION ?= $(shell git describe --tags --dirty)
UNAME := $(shell uname)
ARCH := $(shell uname -m)
BUILDER_NAME = builder
APP_NAME = helmvm
ADMIN_CONSOLE_CHART_VERSION = 1.100.1
Expand All @@ -13,7 +15,16 @@ LD_FLAGS = -X github.com/replicatedhq/helmvm/pkg/defaults.K0sVersion=$(K0S_VERSI
default: helmvm-linux-amd64

output/bin/yq:
ifeq ($(UNAME), Darwin)
ifeq ($(ARCH), arm64)
curl -L -o output/bin/yq https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_darwin_arm64
else
curl -L -o output/bin/yq https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_darwin_amd64
endif
endif
ifeq ($(UNAME), Linux)
curl -L -o output/bin/yq https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_linux_amd64
endif
chmod +x output/bin/yq

output/bin/helm:
Expand Down

0 comments on commit 39a5c29

Please sign in to comment.