Enable builds for Windows, BSD, and homebrew

Fixes #8.
This commit is contained in:
Christian Muehlhaeuser 2020-08-23 10:35:28 +02:00
parent 2822457d13
commit 9dfd746a5a
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E
1 changed files with 58 additions and 17 deletions

View File

@ -2,14 +2,15 @@ env:
- GO111MODULE=on - GO111MODULE=on
before: before:
hooks: hooks:
- go mod download - go mod download
builds: builds:
- - id: "mastotool"
binary: mastotool binary: mastotool
ldflags: -s -w -X main.Version={{ .Version }} -X main.CommitSHA={{ .Commit }} ldflags: -s -w -X main.Version={{ .Version }} -X main.CommitSHA={{ .Commit }}
goos: goos:
- linux - linux
- darwin - freebsd
- windows
goarch: goarch:
- amd64 - amd64
- arm64 - arm64
@ -18,29 +19,69 @@ builds:
goarm: goarm:
- 6 - 6
- 7 - 7
ignore: - id: "darwin"
- goos: darwin binary: "mastotool"
goarch: 386 ldflags: -s -w -X main.Version={{ .Version }} -X main.CommitSHA={{ .Commit }}
- goos: linux goos:
goarch: arm - darwin
goarm: 7 goarch:
signs: - amd64
- artifacts: checksum
archives: archives:
- - id: default
builds:
- mastotool
format_overrides:
- goos: windows
format: zip
replacements: replacements:
darwin: Darwin
linux: Linux
windows: Windows windows: Windows
386: i386 386: i386
amd64: x86_64 amd64: x86_64
- id: darwin
builds:
- darwin
replacements:
darwin: Darwin
amd64: x86_64
nfpms:
- builds:
- mastotool
vendor: muesli
homepage: "https://fribbledom.com/"
maintainer: "Christian Muehlhaeuser <muesli@gmail.com>"
description: "Mastodon CLI tool & statistics generator"
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
brews:
- ids:
- darwin
tap:
owner: muesli
name: homebrew-tap
commit_author:
name: "Christian Muehlhaeuser"
email: "muesli@gmail.com"
homepage: "https://fribbledom.com/"
description: "Mastodon CLI tool & statistics generator"
# skip_upload: true
signs:
- artifacts: checksum
checksum: checksum:
name_template: 'checksums.txt' name_template: "checksums.txt"
snapshot: snapshot:
name_template: "{{ .Tag }}-next" name_template: "{{ .Tag }}-next"
changelog: changelog:
sort: asc sort: asc
filters: filters:
exclude: exclude:
- '^docs:' - "^docs:"
- '^test:' - "^test:"