Skip to content

Commit

Permalink
fix: update create-releases.sh (#165)
Browse files Browse the repository at this point in the history
chore: fix create-releases.sh

Signed-off-by: Arjun Raja Yogidas <[email protected]>
  • Loading branch information
coderbirju authored Feb 21, 2025
1 parent 4a31423 commit 1edf2d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BINDIR ?= $(PREFIX)/bin
BINARY = $(addprefix bin/,finch-daemon)

PACKAGE := github.com/runfinch/finch-daemon
VERSION := $(shell git describe --match 'v[0-9]*' --dirty='.modified' --always --tags)
VERSION ?= $(shell git describe --match 'v[0-9]*' --dirty='.modified' --always --tags)
GITCOMMIT := $(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi)

ifndef GODEBUG
Expand Down
5 changes: 3 additions & 2 deletions scripts/create-releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ release_version=${1/v/} # Remove v from tag name
dynamic_binary_name=finch-daemon-${release_version}-linux-${ARCH}.tar.gz
static_binary_name=finch-daemon-${release_version}-linux-${ARCH}-static.tar.gz

make build
VERSION="$1"
make VERSION="$VERSION" build
cp "$LICENSE_FILE" "${OUT_DIR}"
pushd "$OUT_DIR"
tar -czvf "$RELEASE_DIR"/"$dynamic_binary_name" -- *
popd
rm -rf "{$OUT_DIR:?}"/*

STATIC=1 make build
STATIC=1 make VERSION="$VERSION" build
cp "$LICENSE_FILE" "${OUT_DIR}"
pushd "$OUT_DIR"
tar -czvf "$RELEASE_DIR"/"$static_binary_name" -- *
Expand Down

0 comments on commit 1edf2d4

Please sign in to comment.