Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release a binary on github #113

Open
m040601 opened this issue Mar 18, 2019 · 1 comment
Open

release a binary on github #113

m040601 opened this issue Mar 18, 2019 · 1 comment

Comments

@m040601
Copy link

m040601 commented Mar 18, 2019

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:

#102
#65
#87

@runeimp
Copy link

runeimp commented May 9, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants