andy-5 / wslgit

Use Git installed in Bash on Windows/Windows Subsystem for Linux (WSL) from Windows and Visual Studio Code (VSCode)
MIT License
1.19k stars 59 forks source link

Dumb question: I didn't get any exe after compiling? #57

Closed ZYinMD closed 5 years ago

ZYinMD commented 5 years ago

I didn't install Rust in Windows, I just downloaded Rust with WSL: curl https://sh.rustup.rs -sSf | sh - this was recommended on the official page. Is that why I didn't get any exe? Am I missing something? image image

andy-5 commented 5 years ago

Well, yes. You compiled wslgit using the Linux toolchain of Rust, and therefore get a Linux executable (the wslgit file in your screenshot).

But for wslgit to work, you need a Windows executable (a .exe), which AFAIK you can only compile with the Windows version of Rust.