fix(build): correct artifact names
This commit is contained in:
parent
216fe62090
commit
627f595b9b
12
Makefile
12
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue