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.18k stars 59 forks source link

[enhancement] Include wslgit.exe in the release #109

Closed ahuglajbclajep closed 3 years ago

ahuglajbclajep commented 3 years ago

First of all, congratulations on the release of v1.0.0 :tada::tada::tada: I am a regular user of wslgit.exe and am very grateful for this project.

Now prior to v1.0.0, wslgit.exe was directly included in the release and I used the following powershell script to get it.

$bin = "$HOME\app\bin"
$url = 'https://github.com/andy-5/wslgit/releases/latest/download/wslgit.exe'
New-Item -ItemType Directory -Path $bin -Force > $null
Invoke-WebRequest $url -OutFile "$bin\git.exe"

New-Item ... means mkdir -p "$bin" and Invoke-WebRequest ... means curl -Lo "$bin/git.exe" $url. Since we store wslgit.exe under the name git.exe, we can simply add $bin to the PATH and VS Code will detect wslgit without having to set it up like README.

I'd be happy to include wslgit.exe again directly in the release to facilitate the second method of installation in the README.

andy-5 commented 3 years ago

Thanks for the suggestion. I've now included a direct download of wslgit.exe to the release again.