From 7040c350ae5ed8542dbd2b336f6605158bb91bad Mon Sep 17 00:00:00 2001 From: appleboy Date: Mon, 1 May 2023 21:59:26 +0800 Subject: [PATCH] build: optimize compression method and clean up environment variables (#552) - Replace tar command with xz command for compression - Remove redundant environment variable XZ_OPT ref: https://gitea.com/gitea/homebrew-gitea/pulls/164 Signed-off-by: appleboy Reviewed-on: https://gitea.com/gitea/tea/pulls/552 Reviewed-by: techknowlogick Co-authored-by: appleboy Co-committed-by: appleboy --- .goreleaser.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index fcef41a..bf44ab1 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -71,10 +71,8 @@ builds: no_unique_dist_dir: true hooks: post: - - cmd: tar -cJf {{ .Path }}.xz {{ .Path }} + - cmd: xz -k -9 {{ .Path }} dir: ./dist/ - env: - - XZ_OPT=-9 - cmd: sh .goreleaser.checksum.sh {{ .Path }} - cmd: sh .goreleaser.checksum.sh {{ .Path }}.xz