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

Windows binaries? #101

Closed
wdscxsj opened this issue May 11, 2018 · 17 comments
Closed

Windows binaries? #101

wdscxsj opened this issue May 11, 2018 · 17 comments

Comments

@wdscxsj
Copy link

wdscxsj commented May 11, 2018

Could you kindly provide prebuilt Windows binaries on the release page? Thanks.

@tsl0922
Copy link
Owner

tsl0922 commented Aug 15, 2018

The binaries built from the msys2 dir depends on some dlls, I don't know if it is possible to link all of them statically, which will make binary distribution easily.

$ ldd /usr/bin/ttyd.exe | grep -v Windows
        msys-crypto-1.0.0.dll => /usr/bin/msys-crypto-1.0.0.dll (0x561730000)
        msys-2.0.dll => /usr/bin/msys-2.0.dll (0x180040000)
        msys-z.dll => /usr/bin/msys-z.dll (0x522fe0000)
        msys-ssl-1.0.0.dll => /usr/bin/msys-ssl-1.0.0.dll (0x4ba5c0000)
        msys-gcc_s-seh-1.dll => /usr/bin/msys-gcc_s-seh-1.dll (0x5e8160000)

@wdscxsj
Copy link
Author

wdscxsj commented Aug 16, 2018

You could try -static.

@tsl0922
Copy link
Owner

tsl0922 commented Aug 16, 2018

@wdscxsj -static won't work. msys2 is based on Cygwin, which do not support static linking.

I don't want to provide dynamically linked binaries (please compile it by yourself), so I'm closing this issue.

@wdscxsj
Copy link
Author

wdscxsj commented Aug 17, 2018

Msys2 is a POSIX-y layer, or working environment, which doesn't support static linking by design. On top of it you can install mingw-w64 to compile static Windows native binaries, provided that all dependency libraries have their static versions prebuilt or, lucky enough, directly provided by pacman. That's a major reason why msys2 is loved by many multi-platform C/C++ developers.

@tsl0922
Copy link
Owner

tsl0922 commented Aug 17, 2018

mingw-w64 does not emulate posix environment (for example: lack of apis like forkpty), ttyd won't compile on it, too.

It's possible to use winpty on windows to implement the same functionality with forkpty, this is what node-pty does.

@tsl0922
Copy link
Owner

tsl0922 commented Aug 17, 2018

Maybe we can use the upcoming native ConPTY API on windows 10 🎉

@tsl0922 tsl0922 reopened this Aug 17, 2018
@tsl0922 tsl0922 removed the wontfix label Aug 17, 2018
@wdscxsj
Copy link
Author

wdscxsj commented Aug 20, 2018

That's new... Windows feels energetic and welcoming to developers in the recent years, finally. Thanks for the great work!

@sgeto
Copy link

sgeto commented Mar 29, 2019

@wdscxsj
In case you're still interested...

ttyd-win64.zip

@wdscxsj
Copy link
Author

wdscxsj commented Mar 30, 2019

@sgeto Hi, I eventually built my own binary, but thank you all the same! Still longing for the ConPTY version. 😄

@comicer424
Copy link

@wdscxsj
In case you're still interested...

ttyd-win64.zip

ttyd-win32 is not how can build it pls

@WSLUser
Copy link

WSLUser commented Nov 5, 2020

Any progress with ConPTY support?

@tsl0922
Copy link
Owner

tsl0922 commented Feb 22, 2021

@WSLUser working on it, should be done in this or next month.

@tsl0922
Copy link
Owner

tsl0922 commented Mar 1, 2021

ttyd-conpty.zip

This is an experimental conpty build without ssl support, requires Windows 10 1809+ to run.

@tsl0922
Copy link
Owner

tsl0922 commented Mar 6, 2021

It's on master now., will make a release soon.

To try it, download binary for win10 from a recent ci build, for example:

https://github.com/tsl0922/ttyd/actions/runs/627127925

@tsl0922 tsl0922 closed this as completed Mar 6, 2021
@ksurl
Copy link

ksurl commented Aug 26, 2021

is it stable enough to include in releases? seems to work well enough to run cmd or powershell exe for web access to a windows pc

@glenn-kaseya
Copy link

Is it still possible to download the Windows 10 binaries?

It's on master now., will make a release soon.

To try it, download binary for win10 from a recent ci build, for example:

https://github.com/tsl0922/ttyd/actions/runs/627127925

@WSLUser
Copy link

WSLUser commented May 5, 2022

More important is if the ssl support was added. Win32-OpenSSH uses LibreSSL on Windows just fine, so the ssl support can work there, plus GitforWindows also has a fork of openssl too. I'd prefer libressl personally to start with though support more than one ssl implementation would be ideal (so projects like WolfSsl and BoringSsl can also get supported).

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

7 participants