Skip to content

Commit

Permalink
Build static binaries (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelicianoTech committed Jun 1, 2023
1 parent c62fa3d commit 0879f29
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,21 @@ builds:
- 7
ldflags:
- -s -w -X github.com/hubci/arc/arc/cmd.version={{ .Version }} -extldflags "-static"
env:
- CGO_ENABLED=0

archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}hf{{ end }}"
name_template: >-
{{ .ProjectName }}-v{{ .Version }}-{{ if eq .Os "darwin" }}macos{{ else }}{{ .Os }}{{ end }}-{{ .Arch }}{{ if .Arm }}hf{{ end }}
files:
- LICENSE
- README.md
- completions/*
replacements:
darwin: macos
rlcp: true

nfpms:
- package_name: hubci-arc
Expand Down

0 comments on commit 0879f29

Please sign in to comment.