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

[Feature] Static binary releases #59

Closed
frol opened this issue Jun 12, 2017 · 6 comments
Closed

[Feature] Static binary releases #59

frol opened this issue Jun 12, 2017 · 6 comments

Comments

@frol
Copy link

frol commented Jun 12, 2017

I just want to propose to provide static binary releases. There are some use-cases when you only want to share a session once, and currently, I resort to gotty since go produces portable binaries by design. ttyd has better support for unicode from my experience and this is why I would love to use ttyd...

P.S. It might be worth to consider musl libc instead of glibc for static compilation.

@tsl0922
Copy link
Owner

tsl0922 commented Jun 12, 2017

I definitely want to do this, but didn't find a good way to support all the platforms.

@frol
Copy link
Author

frol commented Jun 12, 2017

Have you bumped into any issues when you just specify -static flag to the linker?

@tsl0922
Copy link
Owner

tsl0922 commented Jun 12, 2017

Yes, tried it before. musl libc maybe a good idea, glibc is too big for static linking.

@tsl0922
Copy link
Owner

tsl0922 commented Jun 14, 2017

Just let you know that I've successfully built a static binary with musl libc, but the build process is very complicate, I'll try to automate it.

Download (linux x64): ttyd.zip

@frol
Copy link
Author

frol commented Jun 14, 2017

@tsl0922 It works on my Arch Linux and Ubuntu 16.04 systems! Super!

@tsl0922
Copy link
Owner

tsl0922 commented Jun 18, 2017

Released 1.3.3 with static binary.

@tsl0922 tsl0922 closed this as completed Jun 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants