1
0
Fork 0

fix(build): correct artifact names

This commit is contained in:
ssube 2020-04-06 08:53:21 -05:00
parent 216fe62090
commit 627f595b9b
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@ GOOS ?= linux
GOARCH ?= amd64
go-build:
go build ${BUILD_OPTS} -o bin/togo-${GOOS}-${GOARCH}
go build ${BUILD_OPTS} -o bin/home-dns-${GOOS}-${GOARCH}
go-clean:
go clean -x
@ -17,14 +17,14 @@ git-push:
bundle-all:
# generate hash file
echo "path bytes sha256" | tee ./bin/hashes
find ./bin/ -name "togo-*" -type f -printf '%p %s ' -exec sh -c 'sha256sum $$1 | cut -d " " -f 1;' find-exec {} \; \
find ./bin/ -name "home-dns-*" -type f -printf '%p %s ' -exec sh -c 'sha256sum $$1 | cut -d " " -f 1;' find-exec {} \; \
| tee -a ./bin/hashes
# compress
tar -cvf bin/togo-all.tgz ./bin/*
gzip ./bin/togo-darwin-* || true
gzip ./bin/togo-linux-* || true
tar -cvf bin/home-dns-all.tgz ./bin/*
gzip ./bin/home-dns-darwin-* || true
gzip ./bin/home-dns-linux-* || true
# do not gzip windows binaries
bundle-clean:
rm -v ./bin/hashes || true
rm -v ./bin/togo-* || true
rm -v ./bin/home-dns-* || true