Adding a new wrapper script for running gin commands on Windows.
The new script (gin.bat) acts as the main entrypoint for commands on Windows. It sets up a temporary (local) path where the gin-cli can find all necessary binaries (git, git-annex, etc.) and then runs the command with the user's arguments. If this script is in the user's %path%, the rest of the software doesn't need to be. The bundled binaries take precedence over any existing binaries with the same name in the %path% since the temporary paths are prepended before calling gin.exe.
The set-global.bat file has been adjusted to add only the path with the gin.bat in it. It also prompts the user to clean their path of any existing GIN CLI directories, if any are detected. This is better done manually, since parsing and editing the path is too error prone.
The PR also includes a small change to the configuration loading and small code quality improvements to the release script.
Adding a new wrapper script for running
gin
commands on Windows.The new script (
gin.bat
) acts as the main entrypoint for commands on Windows. It sets up a temporary (local) path where the gin-cli can find all necessary binaries (git, git-annex, etc.) and then runs the command with the user's arguments. If this script is in the user's%path%
, the rest of the software doesn't need to be. The bundled binaries take precedence over any existing binaries with the same name in the%path%
since the temporary paths are prepended before callinggin.exe
.The
set-global.bat
file has been adjusted to add only the path with thegin.bat
in it. It also prompts the user to clean their path of any existing GIN CLI directories, if any are detected. This is better done manually, since parsing and editing the path is too error prone.The PR also includes a small change to the configuration loading and small code quality improvements to the release script.