Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Commit

Permalink
Fix wrong os and arch for binary releases (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbedos committed Dec 20, 2019
1 parent d858395 commit bd2596f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ releases: man.go $(BUILD) $(BUILD)/LICENSE $(BUILD)/$(EXEC).man.1 $(BUILD)/$(EXE
pandoc -v | head -n1 && \
for GOARCH in amd64; \
do \
for GOOS in linux freebsd openbsd netbsd osx; \
for GOOS in linux freebsd openbsd netbsd darwin; \
do \
BUILD_VERSION="$(PACKAGE)-$$(git describe --tags --dirty)-$$GOOS-$$GOARCH" && \
ARCHIVE="$(BUILD)/$$BUILD_VERSION.tar.gz" && \
echo "Building $$ARCHIVE..." && \
mkdir -p "$(BUILD)/$$BUILD_VERSION" && \
go build -ldflags "-X main.Version=$$BUILD_VERSION" -o "$(BUILD)/$(EXEC)" && \
GOOS="$$GOOS" GOARCH="$$GOARCH" go build -ldflags "-X main.Version=$$BUILD_VERSION" -o "$(BUILD)/$(EXEC)" && \
cp "$(BUILD)/$(EXEC)" "$(BUILD)/LICENSE" "$(BUILD)/$(EXEC).man.html" "$(BUILD)/$(EXEC).man.1" "$(BUILD)/$$BUILD_VERSION/" && \
tar -C "$(BUILD)" -czf "$$ARCHIVE" "$$BUILD_VERSION" ; \
done ; \
Expand Down

0 comments on commit bd2596f

Please sign in to comment.