Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
momaek authored Mar 7, 2024
1 parent 2e2656b commit 51716f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version=$$(git describe --tags)
Version=$(shell git describe --tags)

build_x86:
GOOS=darwin GOARCH=amd64 go build -ldflags "-X github.com/momaek/authy/cmd.Version=${Version}" -o authy-darwin-amd64 main.go

Expand All @@ -17,8 +18,7 @@ build_docker:
-e CGO_ENABLED=0 \
-e GOPROXY='https://goproxy.cn,direct' \
golang:1.15 \
go build -ldflags="-X 'github.com/momaek/authy/cmd.Version=$$AUTHY_CURRENT_TAG'" -o authy-darwin-amd64 main.go
go build -ldflags="-X 'github.com/momaek/authy/cmd.Version=${Version}'" -o authy-darwin-amd64 main.go

tar:
tar zcvf authy.tar.gz authy-darwin-amd64 authy-darwin-arm64 alfredworkflow/Authy.alfredworkflow

tar zcvf authy-${Version}.tar.gz authy-darwin-amd64 authy-darwin-arm64 alfredworkflow/Authy.alfredworkflow

0 comments on commit 51716f5

Please sign in to comment.