astaxie / bat

Go implement CLI, cURL-like tool for humans
Apache License 2.0
2.55k stars 220 forks source link

Provide cross-platform build #38

Closed DavidJFelix closed 8 years ago

DavidJFelix commented 9 years ago

Releases seems to only feature a compiled OSX version. It's pretty simple to provide a Windows and Linux version by simply supplying GOOS environment variable at compile time. Let me know if you'd like any help -- I love the utility, but would really like to install it on systems which don't have a Go compiler installed more easily.

Thanks

astaxie commented 9 years ago

Good suggestion

PaulCapestany commented 9 years ago

@astaxie @DavidJFelix not sure if you guys know about goxc, but it lets you easily create cross-platform builds of Go binaries (and will even auto-publish them as Github releases).

The TL;DR version is that all you should need to do is generate a Github API token for yourself here and then run the following:

go get -u github.com/laher/goxc
goxc -wc default publish-github -owner=astaxie
goxc -wc default publish-github -repository=bat
goxc -wlc default publish-github -apikey=GITHUB_API_TOKEN
goxc bump 
git commit
git remote push
goxc -bc='linux,!arm windows,darwin'
astaxie commented 8 years ago

@PaulCapestany wow. That's really convenient. I will do that now. Thanks so much

astaxie commented 8 years ago

@DavidJFelix https://github.com/astaxie/bat/releases

DavidJFelix commented 8 years ago

Very nice @astaxie, and no @PaulCapestany, I did not know about this tool... I do now! Thanks.

Looking forward to being able to easily provision bat onto my machines.

PaulCapestany commented 8 years ago

@astaxie glad you found it useful 👍

lucianf commented 8 years ago

Hi @astaxie, any reason why the goxc release is marked 0.0.1 while the main project sits at 0.1.0? Is this a typo or was the goxc release built from a different branch?