commit 1048361848ec892c54388e9c2ac8caa50a3c5217 parent 62c579955335b0d787095e8aa39e610c3d3c1c30 Author: Jack Mordaunt <jackmordaunt@gmail.com> Date: Wed, 14 Feb 2018 16:31:08 +0100 [+] Using goreleaser to release binaries. Diffstat:
| A | cmd/icnsify/.goreleaser.yml | | | 69 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 69 insertions(+), 0 deletions(-)
diff --git a/cmd/icnsify/.goreleaser.yml b/cmd/icnsify/.goreleaser.yml @@ -0,0 +1,69 @@ +project_name: icns +release: + github: + owner: jackmordaunt + name: icns + name_template: '{{.Tag}}' +brew: + commit_author: + name: jackmordaunt + email: jackmordaunt@gmail.com + install: bin.install "icns" +scoop: + commit_author: + name: jackmordaunt + email: jackmordaunt@gmail.com +builds: +- goos: + - linux + - darwin + goarch: + - amd64 + - "386" + goarm: + - "6" + targets: + - linux_amd64 + - linux_386 + - darwin_amd64 + - darwin_386 + main: . + ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} + binary: icnsify + lang: go +archive: + name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm + }}v{{ .Arm }}{{ end }}' + format: tar.gz + files: + - licence* + - LICENCE* + - license* + - LICENSE* + - readme* + - README* + - changelog* + - CHANGELOG* +fpm: + name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm + }}v{{ .Arm }}{{ end }}' + bindir: /usr/local/bin +snapcraft: + name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm + }}v{{ .Arm }}{{ end }}' +snapshot: + name_template: SNAPSHOT-{{ .Commit }} +checksum: + name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' +dist: dist +sign: + cmd: gpg + args: + - --output + - $signature + - --detach-sig + - $artifact + signature: ${artifact}.sig + artifacts: none +env_files: + github_token: ~/.config/goreleaser/github_token