Skip to content

Commit

Permalink
feat: goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsSov8forUs committed May 22, 2024
1 parent 242d258 commit a0ff97f
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,46 @@ before:
- which rsrc

builds:
- env:
- id: nowin
env:
- CGO_ENABLED=0
- GO111MOULE=on
goos:
- linux
- windows
- darwin
goarch:
- '386'
- amd64
- 386
- arm
- arm64
goarm:
- 6
- '7'
flags:
- -trimpath
ldflags:
- -s -w
ignore:
- goos: darwin
goarch: 386
goarch: arm
- goos: darwin
goarch: '386'
- id: win
env:
- CGO_ENABLED=0
- GO111MOULE=on
goos:
- windows
goarch:
- '386'
- amd64
- arm
- arm64
goarm:
- '7'
flags:
- -trimpath
ldflags:
- -s -w

archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
Expand Down

0 comments on commit a0ff97f

Please sign in to comment.