Skip to content

Commit d18f5d3

Browse files
committed
make: add tags to release build
1 parent d47f07b commit d18f5d3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ release-install:
9595

9696
release:
9797
@$(call print, "Creating release of lndinit.")
98-
./release.sh build-release "$(VERSION_TAG)" "$(BUILD_SYSTEM)" "$(RELEASE_LDFLAGS)"
98+
./release.sh build-release "$(VERSION_TAG)" "$(BUILD_SYSTEM)" "$(RELEASE_LDFLAGS)" "$(RELEASE_TAGS)"
9999

100100
docker-tools:
101101
@$(call print, "Building tools docker image.")

release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function build_release() {
2828
local tag=$1
2929
local sys=$2
3030
local ldflags=$3
31+
local tags=$4
3132

3233
green " - Packaging vendor"
3334
go mod vendor
@@ -64,7 +65,7 @@ function build_release() {
6465
pushd "${dir}"
6566

6667
green " - Building: ${os} ${arch} ${arm}"
67-
env CGO_ENABLED=0 GOOS=$os GOARCH=$arch GOARM=$arm go build -v -trimpath -ldflags="${ldflags}" ${PKG}
68+
env CGO_ENABLED=0 GOOS=$os GOARCH=$arch GOARM=$arm go build -v -trimpath -ldflags="${ldflags}" -tags="${tags}" ${PKG}
6869
popd
6970

7071
if [[ $os == "windows" ]]; then

0 commit comments

Comments
 (0)