Skip to content

Commit

Permalink
dist: build zip files instead of tar.gz
Browse files Browse the repository at this point in the history
While tar.gz are fairly standard in terms of publishing artifacts, this
tool is for broader use than just build/release automation, so end users
might not have tar installed and/or might not know how to use it. And
making it difficult to take the very first step in using this piece of
software would be quite suboptimal.
  • Loading branch information
kokes committed Jun 30, 2021
1 parent eded1c9 commit fafcf9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ dist: check test
@for os in $(BUILD_OS) ; do \
for arch in $(BUILD_ARCH); do \
echo "Buidling" $$arch $$os; \
artpath="dist/smda-$$os-$$arch.tar.gz"; \
artpath="dist/smda-$$os-$$arch.zip"; \
binpath="smda-server";\
if [ $$os = "windows" ]; then\
binpath="smda-server.exe";\
fi;\
CGO_ENABLED=0 GOARCH=$$arch GOOS=$$os $(GORLS) build -o $$binpath ./cmd/server; \
tar -czf $$artpath LICENSE $$binpath; \
zip $$artpath LICENSE $$binpath; \
rm $$binpath;\
done \
done
(cd dist; shasum -a 256 *.tar.gz > sha256sums.txt)
(cd dist; shasum -a 256 *.zip > sha256sums.txt)

test:
CGO_ENABLED=0 $(GORLS) test -timeout 5s -coverprofile=coverage.out ./...
Expand Down

0 comments on commit fafcf9d

Please sign in to comment.