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

Some questions #10

Open
am1n3F opened this issue Aug 14, 2017 · 1 comment
Open

Some questions #10

am1n3F opened this issue Aug 14, 2017 · 1 comment

Comments

@am1n3F
Copy link

am1n3F commented Aug 14, 2017

What's the beats version do we need to downloads if we want to compile?
Can we compile the protologbeat to generate an android apk?

@hartfordfive
Copy link
Owner

@am1n3F The pre-built binaries are included with each release for Linux and OSX. If you want a different build, you can simply clone the project and the compile for which ever OS/Arch you need. For example, if you wanted to build version 0.2.0 for Windows, you could checkout the 0.2.0 tag and then compile:

GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -X main.build_date=`date +%Y-%m-%d` -X main.version=0.2.0 -X main.commit_hash=`git rev-parse --verify HEAD`" -o protologbeat-0.2.0

Keep in mind the -s and -w flags are just there to keep the resulting binary smaller as they ommit some unecessary symbols from the binary, given that you don't need to debug it in any way. You can find a list of possible OS/Arch values by typing in:

go tool dist list

As for compiling this to be used on Android, i'm not totally sure to be honest. Probably best to check with the Android community on how to accomplish that and what the restrictions (if any) might be.

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