Skip to content

Commit

Permalink
Add support for generating a windows binary
Browse files Browse the repository at this point in the history
  • Loading branch information
imduffy15 committed Dec 15, 2018
1 parent 3e2b3ec commit 67f263f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ build:
goos:
- linux
- darwin
- windows

# GOARCH to build in.
# For more info refer to https://golang.org/doc/install/source#environment
# Defaults are 386 and amd64
goarch:
- amd64
- 386

ldflags: -X github.com/imduffy15/token-cli/version.Version={{.Version}}

Expand Down Expand Up @@ -80,6 +82,10 @@ archive:
darwin: macOS
linux: linux

format_overrides:
- goos: windows
format: zip

brew:
name: token-cli

Expand Down
2 changes: 1 addition & 1 deletion config/config_win.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func userHomeDir() string {
}

func makeDirectory() error {
dir := ConfigDir()
dir := Dir()

err := os.MkdirAll(dir, 0755)
if err != nil {
Expand Down

0 comments on commit 67f263f

Please sign in to comment.