Skip to content

Commit

Permalink
Add builds for windows and mac
Browse files Browse the repository at this point in the history
  • Loading branch information
marcwickenden committed Aug 30, 2023
1 parent 8b6adfc commit ee20e69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
builds:
- main: .
binary: corpass
ldflags:
- -extldflags '-static'
- -X main.version={{.Version}}
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
archives:
- format: binary
checksum:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ EXECUTABLE := "corpass"
GITVERSION := $(shell git describe --dirty --always --tags --long)

build:
go build -ldflags "-X main.Version=${GITVERSION}" -o ${EXECUTABLE} -v
go build -ldflags "-X main.version=${GITVERSION}" -o ${EXECUTABLE} -v

0 comments on commit ee20e69

Please sign in to comment.