textql icon indicating copy to clipboard operation
textql copied to clipboard

release a binary on github

Open m040601 opened this issue 5 years ago • 1 comments

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:

  • travis, https://blog.questionable.services/article/build-go-binaries-travis-ci-github/
  • circleci, https://circleci.com/blog/publishing-to-github-releases-via-circleci/

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

m040601 avatar Mar 18 '19 01:03 m040601

@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! 😃

runeimp avatar May 09 '19 02:05 runeimp