File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ BINDIR ?= $(PREFIX)/bin
1414BINARY = $(addprefix bin/,finch-daemon)
1515
1616PACKAGE := github.com/runfinch/finch-daemon
17- VERSION : = $(shell git describe --match 'v[0-9]* ' --dirty='.modified' --always --tags)
17+ VERSION ? = $(shell git describe --match 'v[0-9]* ' --dirty='.modified' --always --tags)
1818GITCOMMIT := $(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi)
1919
2020ifndef GODEBUG
Original file line number Diff line number Diff line change @@ -56,14 +56,15 @@ release_version=${1/v/} # Remove v from tag name
5656dynamic_binary_name=finch-daemon-${release_version} -linux-${ARCH} .tar.gz
5757static_binary_name=finch-daemon-${release_version} -linux-${ARCH} -static.tar.gz
5858
59- make build
59+ VERSION=" $1 "
60+ make VERSION=" $VERSION " build
6061cp " $LICENSE_FILE " " ${OUT_DIR} "
6162pushd " $OUT_DIR "
6263tar -czvf " $RELEASE_DIR " /" $dynamic_binary_name " -- *
6364popd
6465rm -rf " {$OUT_DIR :?}" /*
6566
66- STATIC=1 make build
67+ STATIC=1 make VERSION= " $VERSION " build
6768cp " $LICENSE_FILE " " ${OUT_DIR} "
6869pushd " $OUT_DIR "
6970tar -czvf " $RELEASE_DIR " /" $static_binary_name " -- *
You can’t perform that action at this time.
0 commit comments