doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
581 stars 83 forks source link

Support Compiling on Windows #100

Open justin0mcateer opened 1 year ago

justin0mcateer commented 1 year ago

I can't find any reference to this being possible/not possible to compile for and run on Windows. Looking over the Cargo.toml, I don't see any obvious (to me) show stoppers. However, the Makefile currently only provides targets that appear to be compatible with Linux.

Would this be likely to compile/run on Windows? If this is likely possible, I would be willing to validate this and add some basic documentation and potentially a build target.

doy commented 1 year ago

rbw uses daemonize to run the agent, and the cli communicates with the agent over a unix domain socket, which i don't think has a good analog on windows. additionally, choosing a pinentry involves introspection on the tty that the cli is called from (nix::unistd::ttyname, etc), which doesn't really work the same way on windows either. i wouldn't be against someone trying to get this to work on windows, but i think it would be a decent bit of work.