papersave icon indicating copy to clipboard operation
papersave copied to clipboard

Release it as a binary on github

Open m040601 opened this issue 4 years ago • 3 comments

Not wanting to be to demanding but, any chance you could actualy release it as a binary on github ?

It's not practical for non developers to constantly download the half giga go distro and recompile go binaries.

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

Not everyone has or wants 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. Ubuntu, Archlinux AUR).i

Do you know you can automate this for free with github actions ?

Check how other famous go tools do it, for example https://github.com/gokcehan/lf/tree/master/.github/workflows

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

Thanks in advance

m040601 avatar Jul 13 '21 17:07 m040601

Thanks for the suggestion.

goreleaser seems promising however is does not handle correctly cross compilation with external libs (such as zbar) for now I didn't manage to make it work correctly neither for linux nor windows.

If you do have some experience with goreleaser any help is welcome.

TIA.

renard avatar Jul 30 '21 08:07 renard

If you do have some experience with goreleaser any help is welcome.

Unfortunately not. I'm not even a programmer or developer. I just noticed the tools other projects (big ones) are using.

Here is another one. He doesnt seem to be using goreleaser, I think. Only github actions. For testing ???

https://github.com/junegunn/fzf/tree/master/.github/workflows

Some more:

https://github.com/mvdan/github-actions-golang https://reposhub.com/go/miscellaneous/mvdan-github-actions-golang.html

m040601 avatar Aug 01 '21 07:08 m040601

For now the problem is not releasing the binaries but cross-compiling the code using CGO. As soon as I find a clean way to do that without using multiple environments, I will release the binaries.

renard avatar Aug 04 '21 08:08 renard