Skip to content

Commit b0abe50

Browse files
committed
fix: include LICENSE tarballs, version-os-arch in name
1 parent 834a053 commit b0abe50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/make/950_release.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ package-rpm-$(1)-$(2) : $(DISTDIR)/$(1)-$(2)/nfpm.yaml $(DISTDIR)/changelog.yaml
4242
--packager rpm \
4343
--target $(DISTDIR)/$(1)-$(2)/
4444

45-
package-tgz-$(1)-$(2) : $(DISTDIR)/$(1)-$(2)/sm-k6 $(DISTDIR)/$(1)-$(2)/synthetic-monitoring-agent $(ROOTDIR)/CHANGELOG.md $(ROOTDIR)/README.md
45+
package-tgz-$(1)-$(2) : $(DISTDIR)/$(1)-$(2)/sm-k6 $(DISTDIR)/$(1)-$(2)/synthetic-monitoring-agent $(ROOTDIR)/CHANGELOG.md $(ROOTDIR)/README.md $(ROOTDIR)/LICENSE
4646
# Create a tarball including the binaries, changelog, and readme. --transform is used to place all files at the root
4747
# of the tarball. The built-in make variable dollar-caret is escaped with two dollars so it survives package_template.
48-
$(S) tar --transform 's|.*/||' -zcf $(DISTDIR)/$(1)-$(2)/synthetic-monitoring-agent.tar.gz $$^
48+
$(S) tar --transform 's|.*/||' -zcf $(DISTDIR)/$(1)-$(2)/synthetic-monitoring-agent-$(firstword $(subst -, ,$(BUILD_VERSION)))-$(1)-$(2).tar.gz $$^
4949

5050
package-$(1)-$(2) : package-deb-$(1)-$(2) package-rpm-$(1)-$(2) package-tgz-$(1)-$(2)
5151
@true

0 commit comments

Comments
 (0)