aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2022-07-24 22:46:51 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2022-07-24 23:01:18 +0200
commit40d80bde511a7a76a0f5a3c16afc9eef2e5972e2 (patch)
tree9179d7a933d9688eb001f07a5c046b2dc545c150 /Makefile
parentdc81e33f760b45778f2646d6f1a7c9e8166b2fe5 (diff)
downloadmdir-40d80bde511a7a76a0f5a3c16afc9eef2e5972e2.tar.gz
mdir-40d80bde511a7a76a0f5a3c16afc9eef2e5972e2.tar.bz2
mdir-40d80bde511a7a76a0f5a3c16afc9eef2e5972e2.zip
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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