From 40d80bde511a7a76a0f5a3c16afc9eef2e5972e2 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 24 Jul 2022 22:46:51 +0200 Subject: fix: Using git to archive Now it uses git to better archive the tar ball. Source: - https://git.sr.ht/~sircmpwn/hub.sr.ht/tree/master/item/.builds/alpine.yml#L25 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 29f6fd9..398cdc3 100644 --- a/Makefile +++ b/Makefile @@ -4,4 +4,6 @@ build: go build -ldflags="-X 'main.Version=${VERSION}'" tar: build - tar -cvf midr-${VERSION}.tar.xz midr templates/ + git archive \ + -o midr-${VERSION}.tar.gz \ + --prefix=midr-${VERSION}/ HEAD -- cgit v1.2.3