dinedal / textql

Execute SQL against structured text like CSV or TSV
MIT License
9.05k stars 300 forks source link

release a binary on github #113

Open m040601 opened 5 years ago

m040601 commented 5 years ago

Any chance you could actualy release it as a binary on github ?

Releasing a binary, just makes your tool available for someone who just wants to check it out quickly.

Not everyone has the entire go distribution installed or as a simple user is familiar with compiling.Besides that releasing a binary, would make it easier for others to create a package for a Linux distro, based on the binary (ex. Archlinux AUR).i

Do you know this tool, https://github.com/goreleaser/goreleaser ?

https://help.github.com/en/articles/creating-releases you can also use:

https://github.com/dinedal/textql/issues/102 https://github.com/dinedal/textql/issues/65 https://github.com/dinedal/textql/issues/87

runeimp commented 5 years ago

@dinedal I've been intending to look into Travis, etc. but I currently just cross-compile locally for most of my projects. Go is great for this. You could add something like the following to your Makefile:

GOOS=darwin GOARCH=386 go build -o bin/os-x/textql textql/main.go
GOOS=darwin GOARCH=amd64 go build -o bin/macos/textql textql/main.go
GOOS=linux GOARCH=386 go build -o bin/linux-x86/textql textql/main.go
GOOS=linux GOARCH=amd64 go build -o bin/linux-x86_64/textql textql/main.go
GOOS=windows GOARCH=386 go build -o bin/Win32/textql.exe textql/main.go
GOOS=windows GOARCH=amd64 go build -o bin/Win64/textql.exe textql/main.go

Or to get slightly more involved with building actual zips to upload to the repos release page you can check out the distro recipe in my Justfile for https://github.com/runeimp/filedelta for some ideas if you like.

BTW, Thank You for textql! Wish I'd found this tool a few months ago. It is awesome! 😃