From 8f7bd4a17395af9811fd290fabd7efd279f5e994 Mon Sep 17 00:00:00 2001 From: Marco Mariani Date: Sun, 13 Aug 2023 23:25:29 +0200 Subject: [PATCH] alternate vendor file (xz compression and version number) --- .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 41b0292..6c0c239 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 9dceec9..9a4e059 100644 --- a/Makefile +++ b/Makefile @@ -98,10 +98,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