File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ builds:
2828 ignore :
2929 - goos : darwin
3030 goarch : ' 386'
31- binary : ' kfutil'
31+ binary : ' keyfactor'
32+ main : ' ./cmd/keyfactor'
3233archives :
3334 - format : zip
3435 name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
Original file line number Diff line number Diff line change 1+ BINARY = "keyfactor"
2+ VERSION = "v1.3.1"
3+
14GOARCH = amd64
25
36UNAME = $(shell uname -s)
@@ -31,4 +34,20 @@ clean:
3134fmt :
3235 go fmt $$(go list ./... )
3336
37+
38+ release :
39+ GOOS=darwin GOARCH=amd64 go build -o ./bin/${BINARY} _${VERSION} _darwin_amd64
40+ GOOS=freebsd GOARCH=386 go build -o ./bin/${BINARY} _${VERSION} _freebsd_386
41+ GOOS=freebsd GOARCH=amd64 go build -o ./bin/${BINARY} _${VERSION} _freebsd_amd64
42+ GOOS=freebsd GOARCH=arm go build -o ./bin/${BINARY} _${VERSION} _freebsd_arm
43+ GOOS=linux GOARCH=386 go build -o ./bin/${BINARY} _${VERSION} _linux_386
44+ GOOS=linux GOARCH=amd64 go build -o ./bin/${BINARY} _${VERSION} _linux_amd64
45+ GOOS=linux GOARCH=arm go build -o ./bin/${BINARY} _${VERSION} _linux_arm
46+ GOOS=openbsd GOARCH=386 go build -o ./bin/${BINARY} _${VERSION} _openbsd_386
47+ GOOS=openbsd GOARCH=amd64 go build -o ./bin/${BINARY} _${VERSION} _openbsd_amd64
48+ GOOS=solaris GOARCH=amd64 go build -o ./bin/${BINARY} _${VERSION} _solaris_amd64
49+ GOOS=windows GOARCH=386 go build -o ./bin/${BINARY} _${VERSION} _windows_386
50+ GOOS=windows GOARCH=amd64 go build -o ./bin/${BINARY} _${VERSION} _windows_amd64
51+
52+
3453.PHONY : build clean fmt start enable
You can’t perform that action at this time.
0 commit comments