Skip to content

Commit 2f2eca6

Browse files
committed
chore: fix create-releases.sh
Signed-off-by: Arjun Raja Yogidas <[email protected]>
1 parent 4a31423 commit 2f2eca6

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.13.0"
2+
".": "0.12.0"
33
}

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ BINDIR ?= $(PREFIX)/bin
1414
BINARY = $(addprefix bin/,finch-daemon)
1515

1616
PACKAGE := 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)
1818
GITCOMMIT := $(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi)
1919

2020
ifndef GODEBUG

scripts/create-releases.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@ release_version=${1/v/} # Remove v from tag name
5656
dynamic_binary_name=finch-daemon-${release_version}-linux-${ARCH}.tar.gz
5757
static_binary_name=finch-daemon-${release_version}-linux-${ARCH}-static.tar.gz
5858

59-
make build
59+
VERSION="$1"
60+
make VERSION="$VERSION" build
6061
cp "$LICENSE_FILE" "${OUT_DIR}"
6162
pushd "$OUT_DIR"
6263
tar -czvf "$RELEASE_DIR"/"$dynamic_binary_name" -- *
6364
popd
6465
rm -rf "{$OUT_DIR:?}"/*
6566

66-
STATIC=1 make build
67+
STATIC=1 make VERSION="$VERSION" build
6768
cp "$LICENSE_FILE" "${OUT_DIR}"
6869
pushd "$OUT_DIR"
6970
tar -czvf "$RELEASE_DIR"/"$static_binary_name" -- *

0 commit comments

Comments
 (0)