From c421287eeef9edffe997a651560fd3313a19615e Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Mon, 21 Aug 2023 16:35:43 +0200 Subject: [PATCH] alternate vendor file (xz compression and version number) (#51) --- .github/workflows/build-binary-package.yml | 2 +- Makefile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-binary-package.yml b/.github/workflows/build-binary-package.yml index 73a41ed..aab04ab 100644 --- a/.github/workflows/build-binary-package.yml +++ b/.github/workflows/build-binary-package.yml @@ -38,4 +38,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | tag_name="${GITHUB_REF##*/}" - hub release edit $(find . -name "$PROGRAM_NAME*" -maxdepth 1 -printf "-a %p ") -a vendor.tgz -m "" "$tag_name" + hub release edit $(find . -name "$PROGRAM_NAME*" -maxdepth 1 -printf "-a %p ") -a vendor.tgz -a *-vendor.tar.xz -m "" "$tag_name" diff --git a/Makefile b/Makefile index 065bc6e..5e6d69c 100644 --- a/Makefile +++ b/Makefile @@ -88,10 +88,11 @@ RELDIR = $(BINARY_NAME)-$(BUILD_VERSION) vendor: $(GOCMD) mod vendor tar czf vendor.tgz vendor + tar --create --auto-compress --file=$(RELDIR)-vendor.tar.xz vendor .PHONY: vendor-remove vendor-remove: - $(RM) -r vendor vendor.tgz + $(RM) -r vendor vendor.tgz *-vendor.tar.xz # Called during platform-all, to reuse the directory for other platforms .PHONY: clean-release-dir