Skip to content

Commit

Permalink
meta: Prepare for use with goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
jen20 committed Jan 11, 2018
1 parent 1f5e1b3 commit 5648ac5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
builds:
-
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
- freebsd
- openbsd
- solaris
goarch:
- 386
- amd64
- arm
- arm64
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
archive:
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ func configureApp(app *kingpin.Application) error {
return nil
}

var version = "master"

func main() {
app := kingpin.New("cfgt", "A configuration file translation utility")
app.Author("Joyent, Inc.")
app.Version("0.1")
app.Version(version)
if err := configureApp(app); err != nil {
type stackTracer interface {
StackTrace() errors.StackTrace
Expand Down

0 comments on commit 5648ac5

Please sign in to comment.