From 4e074d3d995c6a64c444f9456291b071def2d469 Mon Sep 17 00:00:00 2001 From: name Date: Tue, 30 May 2023 11:28:44 +0000 Subject: [PATCH] another release test --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index beecb07..c8713de 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,8 @@ release-lin: docker run --rm -v $(ROOT):/app golang:$(GO_VERSION)-alpine3.18 /bin/sh -c "cd /app && go build -o ./build/framed ./main.go" sudo chown -R $(USER):$(USER) ./build $(eval VERSION := $(shell git describe --tags --abbrev=0 2> /dev/null || git rev-parse --short HEAD)) - tar -czvf ./build/framed-lunux-$(VERSION).tar.gz ./build/framed + tar -zcvf ./build/framed-linux-$(VERSION).tar.gz ./build/framed + rm ./build/framed # make release for windows .PHONY: release-win @@ -19,7 +20,8 @@ release-win: docker run --rm -v $(ROOT):/app golang:$(GO_VERSION)-alpine3.18 /bin/sh -c "cd /app && GOOS=windows GOARCH=amd64 go build -o ./build/framed.exe ./main.go" sudo chown -R $(USER):$(USER) ./build $(eval VERSION := $(shell git describe --tags --abbrev=0 2> /dev/null || git rev-parse --short HEAD)) - tar -czvf ./build/framed-windows-$(VERSION).tar.gz ./build/framed.exe + tar -zcvf ./build/framed-windows-$(VERSION).tar.gz ./build/framed.exe + rm -rf ./build/framed.exe # make release for mac .PHONY: release-mac @@ -27,7 +29,8 @@ release-mac: docker run --rm -v $(ROOT):/app golang:$(GO_VERSION)-alpine3.18 /bin/sh -c "cd /app && GOOS=darwin GOARCH=amd64 go build -o ./build/framed ./main.go" sudo chown -R $(USER):$(USER) ./build $(eval VERSION := $(shell git describe --tags --abbrev=0 2> /dev/null || git rev-parse --short HEAD)) - tar -czvf ./build/framed-mac-$(VERSION).tar.gz ./build/framed + tar -zcvf ./build/framed-mac-$(VERSION).tar.gz ./build/framed + rm ./build/framed .PHONY: build build: