Skip to content

Commit

Permalink
Fix package path in ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
bengadbois committed Nov 29, 2017
1 parent 1d42cef commit 8aea42f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ before_deploy:
- go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr
- # make an dist/OS_ARCH.tar.gz for each platform, and put the binary in the top level
- gox -ldflags="-X \"main.buildTime=$(date)\" -X \"main.version=$TRAVIS_TAG\"" -output "dist/{{.OS}}_{{.Arch}}/{{.Dir}}/{{.Dir}}"
- gox -ldflags="-X \"github.com/bengadbois/pewpew/cmd.buildTime=$(date)\" -X \"github.com/bengadbois/pewpew/cmd.version=$TRAVIS_TAG\"" -output "dist/{{.OS}}_{{.Arch}}/{{.Dir}}/{{.Dir}}"
- for i in $(find dist -mindepth 1 -maxdepth 1 -type d); do tar -czf "$i".tar.gz -C "$i" "."; done

deploy:
Expand Down

0 comments on commit 8aea42f

Please sign in to comment.