Skip to content

Commit

Permalink
goreleaser file configuration updated
Browse files Browse the repository at this point in the history
Signed-off-by: zerjioang <[email protected]>
  • Loading branch information
zerjioang committed Oct 21, 2021
1 parent 6ed898d commit 88b9313
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,41 @@ before:
# you may remove this if you don't need go generate
- go generate ./...
builds:
- binary: "bin/ddns-cloudflare"
# Custom flags templates.
- flags:
- main: "."
id: "main"
binary: "bin/ddns-cloudflare"
# Custom flags templates.
flags:
- -v
- -trimpath
- asmflags:
- all=-trimpath={{.Env.GOPATH}}
- gcflags:
- all=-trimpath={{.Env.GOPATH}}
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser`.
- ldflags:
asmflags:
- all=-trimpath=
gcflags:
- all=-trimpath=
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser`.
ldflags:
- -s -extldflags=-static -w -X main.build={{.Version}}
- tags:
tags:
- osusergo
- netgo
- env:
env:
- CGO_ENABLED=0
- goos:
goos:
- linux
- freebsd
- windows
- darwin
- goarch:
goarch:
- amd64
- arm
- arm64
- 386
- goarm:
goarm:
- 6
- 7
- ignore:
- goos: windows
goarch: arm64
ignore:
- goos: windows
goarch: arm64
archives:
- replacements:
darwin: Darwin
Expand Down

0 comments on commit 88b9313

Please sign in to comment.