Skip to content

Commit

Permalink
Merge pull request #113 from Clever/create-release-for-m1
Browse files Browse the repository at this point in the history
create a release that will actually run on m1 macs for testing
  • Loading branch information
ChrisScotMartin authored Nov 2, 2023
2 parents a57f6ea + a2d673f commit 01fa843
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ release:
-o="$@/$(EXECUTABLE)-$(VERSION)-linux-amd64" $(EXECUTABLE_PKG)
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X main.Version=$(VERSION)" \
-o="$@/$(EXECUTABLE)-$(VERSION)-darwin-amd64" $(EXECUTABLE_PKG)

GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w -X main.Version=$(VERSION)" \
-o="$@/$(EXECUTABLE)-$(VERSION)-darwin-arm64" $(EXECUTABLE_PKG)
clean:
rm -rf bin release

Expand Down
5 changes: 3 additions & 2 deletions make/sfncli.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is the default sfncli Makefile.
# Please do not alter this file directly.
SFNCLI_MK_VERSION := 0.1.3
SFNCLI_MK_VERSION := 0.1.4
SHELL := /bin/bash
SYSTEM := $(shell uname -a | cut -d" " -f1 | tr '[:upper:]' '[:lower:]')
SFNCLI_INSTALLED := $(shell [[ -e "bin/sfncli" ]] && bin/sfncli --version)
Expand All @@ -11,6 +11,7 @@ SFNCLI_LATEST = $(shell \
https://api.github.com/repos/Clever/sfncli/releases/latest | \
grep tag_name | \
cut -d\" -f4)
ARCH = $(shell go env GOARCH)

.PHONY: bin/sfncli sfncli-update-makefile ensure-sfncli-version-set ensure-curl-installed

Expand All @@ -35,7 +36,7 @@ bin/sfncli: ensure-sfncli-version-set ensure-curl-installed
} \
else \
echo "Updating sfncli..."; \
curl --retry 5 --fail --max-time 30 -o bin/sfncli -sL https://github.com/Clever/sfncli/releases/download/$(SFNCLI_VERSION)/sfncli-$(SFNCLI_VERSION)-$(SYSTEM)-amd64 && \
curl --retry 5 --fail --max-time 30 -o bin/sfncli -sL https://github.com/Clever/sfncli/releases/download/$(SFNCLI_VERSION)/sfncli-$(SFNCLI_VERSION)-$(SYSTEM)-$(ARCH) && \
chmod +x bin/sfncli && \
echo "Successfully updated sfncli to $(SFNCLI_VERSION)" || \
{ [[ -z "$(SFNCLI_INSTALLED)" ]] && \
Expand Down

0 comments on commit 01fa843

Please sign in to comment.