Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: allow build on mac os environment #94

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading