Skip to content

Commit

Permalink
Build for Apple M1/M2 architecture
Browse files Browse the repository at this point in the history
Signed-off-by: Ringo De Smet <ringo@de-smet.name>
  • Loading branch information
ringods authored and dghubble committed Oct 16, 2023
1 parent 8d924d6 commit e8c9b66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,14 @@ release: \
_output/matchbox-linux-amd64.tar.gz \
_output/matchbox-linux-arm.tar.gz \
_output/matchbox-linux-arm64.tar.gz \
_output/matchbox-darwin-amd64.tar.gz
_output/matchbox-darwin-amd64.tar.gz \
_output/matchbox-darwin-arm64.tar.gz

bin/linux-amd64/matchbox: GOARGS = GOOS=linux GOARCH=amd64
bin/linux-arm/matchbox: GOARGS = GOOS=linux GOARCH=arm GOARM=6
bin/linux-arm64/matchbox: GOARGS = GOOS=linux GOARCH=arm64
bin/darwin-amd64/matchbox: GOARGS = GOOS=darwin GOARCH=amd64
bin/darwin-arm64/matchbox: GOARGS = GOOS=darwin GOARCH=arm64
bin/linux-ppc64le/matchbox: GOARGS = GOOS=linux GOARCH=ppc64le

bin/%/matchbox:
Expand All @@ -108,10 +110,12 @@ release-sign:
gpg2 --armor --detach-sign _output/matchbox-$(VERSION)-linux-arm.tar.gz
gpg2 --armor --detach-sign _output/matchbox-$(VERSION)-linux-arm64.tar.gz
gpg2 --armor --detach-sign _output/matchbox-$(VERSION)-darwin-amd64.tar.gz
gpg2 --armor --detach-sign _output/matchbox-$(VERSION)-darwin-arm64.tar.gz

release-verify: NAME=_output/matchbox
release-verify:
gpg2 --verify $(NAME)-$(VERSION)-linux-amd64.tar.gz.asc $(NAME)-$(VERSION)-linux-amd64.tar.gz
gpg2 --verify $(NAME)-$(VERSION)-linux-arm.tar.gz.asc $(NAME)-$(VERSION)-linux-arm.tar.gz
gpg2 --verify $(NAME)-$(VERSION)-linux-arm64.tar.gz.asc $(NAME)-$(VERSION)-linux-arm64.tar.gz
gpg2 --verify $(NAME)-$(VERSION)-darwin-amd64.tar.gz.asc $(NAME)-$(VERSION)-darwin-amd64.tar.gz
gpg2 --verify $(NAME)-$(VERSION)-darwin-arm64.tar.gz.asc $(NAME)-$(VERSION)-darwin-arm64.tar.gz

0 comments on commit e8c9b66

Please sign in to comment.